Name
sftp
Synopsis
sftp [options] [hostname] sftp [user@]hostname:[pathname]
Secure FTP. Transfers files to and from
remote network site hostname
using ssh
as the
transport. Once an sftp
connection is made, sftp becomes
interactive, prompting the user for a command. Type
help to see a list of known commands.
If pathname is a directory, it becomes the
initial remote working directory once the connection is made. If
pathname is a file,
sftp transfers that file into the local working
directory, closes the connection, and exits without entering
interactive mode.
Options
-
-bfilename Run in batch mode, reading commands from
filenameinstead of standard input.-
-Bbuffersize Use a buffer size of
buffersizebytes when transferring files instead of the default 32768 bytes.-
-C Turn on compression.
-
-Ffilename Use specified
sshconfiguration file.-
-okeyword Set configuration keyword.
-
-Psftp-server_path Connect to the local
sftp-serverprogram atsftp-server_path, instead of usingssh(for debugging purposes). The default location for the program on Mac OS X is/usr/libexec/sftp-server.-
-Rn Allow up to
noutstanding requests, instead of the default, 16.-
-ssubsystem Invoke remote subsystem.
-
-Spathname Use local
sshexecutable located atpathname.-
-v Be verbose.
-
-1 Attempt a Version 1 connection.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access