I am looking for an CLI based BASH SCRIPTABLE FTPES or ftp wtih "Require explicit FTP over TLS" support.
I currently use rsync with an SSH login to accomplish sync up two servers.. the new server doesn't support this, and is out of my control to change to this format.
NOTE: curlftpfs is deprecated, outdated, and not worked on in the last 5 years so is out!
Anything to get rsync to work with ftpes? Or even as a last resort https? Most report rsync won't work this way... so...
Man I was going to say "stunnel that bitch, Bitchez love stunnel" but you're having to deal with FTP !21 ftp-data ports which are client negotiated and can be ephemeral.
said by graysonf:sftp does not require shell access and in many administratively applied configurations shell access via ssh is disabled.
The host supports
FTP w/Explicit TLS
OR
HTTPS
That is it..
No shell access period or any other access other than the above. Matter of fact they got quite testy when I tried sftp, rysnc etc... and they failed.. we got some very terse emails about "Don't do that again!"
I would use some one else but this host is not of my choosing and I am stuck will dealing with it. if sftp was allowed I would just use sftp and expect and script it that way... but it won't connect... this is how I found out the way this is set up.... I am not a happy camper... existing script dust... pain in the posterior protocol to use which is not scriptable...
quote: Lftp can also be scriptable, it can be used to mirror sites, it lets you copy files among remote servers (even between FTP and HTTP). It has an extensive online help. It supports bookmarks, and connecting to several ftp/http sites at the same time.
It's in the repos for me on Ubuntu 12.04 LTS:
Package: lftp
Priority: optional
Section: net
Installed-Size: 1084
Maintainer: Ubuntu Developers
Original-Maintainer: Noël Köthe
Architecture: amd64
Version: 4.3.3-1
Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgnutls26 (>= 2.12.6.1-0), libreadline6 (>= 6.0), libtinfo5, netbase
Filename: pool/main/l/lftp/lftp_4.3.3-1_amd64.deb
Size: 457858
MD5sum: 50aa583ee99b352590f389299c017ae2
SHA1: 438d3e90eab00363ea4a68bdc1f5c18f40e08cc0
SHA256: f9d451908c6c414cb78981052513d4c622414478aa266194fe312b066c67d73b
Description-en: Sophisticated command-line FTP/HTTP client programs
Lftp is a file retrieving tool that supports FTP, HTTP, FISH, SFTP, HTTPS
and FTPS protocols under both IPv4 and IPv6. Lftp has an amazing set of
features, while preserving its interface as simple and easy as possible.
.
The main two advantages over other ftp clients are reliability and ability
to perform tasks in background. It will reconnect and reget the file being
transferred if the connection broke. You can start a transfer in background
and continue browsing on the ftp site. It does this all in one process. When
you have started background jobs and feel you are done, you can just exit
lftp and it automatically moves to nohup mode and completes the transfers.
It has also such nice features as reput and mirror. It can also download a
file as soon as possible by using several connections at the same time.
.
Lftp can also be scriptable, it can be used to mirror sites, it lets you
copy files among remote servers (even between FTP and HTTP). It has an
extensive online help. It supports bookmarks, and connecting to several
ftp/http sites at the same time.
.
This package also includes lftpget - A simple non-interactive
tool for downloading files.
Homepage: http://lftp.yar.ru/
Description-md5: fc619b0ad030a5994bbf00e9a9ff9a5a
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
quote: Lftp can also be scriptable, it can be used to mirror sites, it lets you copy files among remote servers (even between FTP and HTTP). It has an extensive online help. It supports bookmarks, and connecting to several ftp/http sites at the same time.
Thank you! I will look at lftp never heard of it...
Thank you! I will look at lftp never heard of it...
I've heard of it, but honestly, have never used it. I know you're in a unique captive situation so I hate to just toss things out there but this one seemed solid. I've never been in a situation like yours (as in, so restrictive) so I can appreciate the frustration with the dictated remote connectivity options. Keep us updated if you don't mind bro. I'm a huge fan of rsync, ncftp, nc, stunnel, etc but your situation is pretty unique and I appreciate the opportunity to learn more; this at least has pointed me to lftp.