sftp Command Examples

Secure File Transfer Program. Interactive program to copy files between hosts over SSH. For non-interactive file transfers, see scp or rsync. More information: https://manned.org/sftp.

sftp {{remote_user}}@{{remote_host}}

sftp -P {{remote_port}} {{remote_user}}@{{remote_host}}

sftp {{host}}

get {{/path/remote_file}}

put {{/path/local_file}}

get -R {{/path/remote_directory}}

lls

ls