Skip to content

LFTP over SFTP Protocol

  • FTP


Basically, lftp use ftp protocol , so 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:[email protected]:28/home/steven/scripts
cd ok, cwd=/home/steven/scripts

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

Leave a Reply

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