Using SFTP Commands for Secure File Transfer

Last modified: November 3, 2020

If you wish to use the terminal to transfer files between servers, you can use either the lftp or sftp command line programs.

The LFTP Command

$ lftp s -e 'set sftp:connect-program "ssh -o PubkeyAuthentication=false"'

The SFTP Command

$ sftp -o PubkeyAuthentication=false


For more information about lftp and sftp, please see their respective manuals by running man lftp or man ssh from your terminal.

What is the SFTP path to the Pressable site root?

When you connect to any Pressable site over SFTP, you will be dropped into the site root immediately.

However, if you must specify a path to the site root – for example, when using command line programs like lftp – the path to the site root is: /htdocs

An Automattic Invention A family of WordPress solutions.