Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to set up a script on a Linux machine to download files from a server using FTPS, what options do I have?

share|improve this question

closed as off-topic by Jenny D, Andrew Schulman, MadHatter, mdpc, HBruijn Jun 10 '15 at 6:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

You could use lftp it handles ftps with ease and make a "lftp-script"


debug 10
open ftps://
get <yourfile>


lftp -f lftp-script

Or use lftpget:

lftpget ftps://
share|improve this answer
+1 for lftp. IMO it's the best command-line ftp client around. – cas Aug 28 '09 at 12:48

curl ftps:// or curl --ftp-ssl

share|improve this answer
If you can't install lftp, curl seems like the only option (it's usually included as a core utility on all major distros) – Ray May 8 '15 at 14:07



I think it is shipped with ncftp.

EDIT: My fault, not SFTP support I think. From the NCFTP FAQ:

Q. Does NcFTP support any secure FTP modes a la SFTP/SSL/SSH Tunnels?

A. NcFTP does not have any built-in support for encryption or secure FTP of any type. We do not support any type of interaction with hacks such as FTP over SSH tunnels. We may implement a secure FTP mode at a future date, but please do not ask for an ETA.

share|improve this answer

curlftpfs is your friend. It's awesome.

# emerge curlftpfs  (or apt-get, yum, whatever)

Then add this your fstab:  /my/local/path  fuse  user,noauto,defaults,sslv3,no_verify_peer  0  0

Finally, just mount that directory on your local filesystem:

$ mount /my/local/path

And now you can cp or even rsync from one local dir to another.

share|improve this answer
I think you meant emerge curlftpfs – Jon L. Jun 2 '15 at 23:44
Oops, you're totally right. All fixed :-) – Daniel Quinn Jun 6 '15 at 17:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.