How to Use LFTP over SFTP Protocol

  • by
Basically, lftp use ftp protocol , if you want to use lftp to connect to the server with sftp protocol underlyingly, you should use the pattern of URL like this:
lftp sftp://<user>:<password>@<remote_domain>:<port_number>/<remote_path>
For example:
[root@localhost ~]# lftp sftp://steven:password@ftp.example.com:28/home/steven/scripts
cd ok, cwd=/home/steven/scripts

If the string contains special characters, you should add single quotes to enclose it.

Leave a Reply

Your email address will not be published. Required fields are marked *