Name
sftp — stdin stdout - file -- opt --help --version
Synopsis
sftp (host
username
@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 MyFiles
sftp>ls
README file1 file2 file3 sftp>get file2
Fetching /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 |
Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.