Name
sftp — stdin stdout - file -- opt --help --version
Synopsis
sftp (hostusername@host)
The sftp program copies
files interactively and securely between two computers. (As opposed
to scp, which copies files in
batch.) The user interface is much like that of ftp, but ftp is not secure.
$ sftp remote.example.com Password:********sftp>cd MyFilessftp>lsREADME file1 file2 file3 sftp>get file2Fetching /home/smith/MyFiles/file2 to file2 sftp>quit
If your username on the remote system is different from your
local one, use the
username@host
argument:
$ sftp smith@remote.example.com
|
Command |
Meaning |
|---|---|
|
|
View a list of available commands. |
|
|
List the files in the current remote directory. |
|
|
List the files in the current local directory. |
|
|
Print the remote working directory. |
|
|
Print the local working directory. |
|
|
Change your remote
directory to be
|
|
|
Change your local
directory to be
|
|
|
Copy remote
|
|
|
Copy local
|
|
|
Copy multiple remote files to the local machine using wildcards * and ?. |
|
|
Copy multiple local files to the remote machine using wildcards * and ?. |
|
|
Exit |
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