Skip to content

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 s
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.