sftp - Linux Command - Unix Command

woman using laptop
JGI/Tom Grill/Blend Images/Getty Images


sftp - Secure file transfer program


sftp [-vC1 ] [-batchfile ] [-ssh_option ] [-subsystem | sftp_server ] [-buffer_size ] [-Fssh_config ] [-sftp_server path ] [-num_requests ] [-program ] host 
sftp [[user@]host[:file [file]]] 
sftp [[user@]host[:dir[/]]]


sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted ssh(1) transport.

It may also use many features of ssh, such as public key authentication and compression. sftp connects and logs into the specified host then enters an interactive command mode.

The second usage format will retrieve files automatically if a non-interactive authentication method is used; otherwise it will do so after successful interactive authentication.

Was this page helpful?