|
|
 |
|
Example SFTP Session
Homer and Mead, two Uniform Access computers, provide an excellent opportunity
to demonstrate SFTP. What follows is a transcript of an actual SFTP session
initiated on Homer. In this case the account on a departmental computer
differs from the account on Homer so you need to include the account name in
the sftp command:
homer22% sftp tst@computerin.deptartment.washington.edu
tst@computerin.deptartment.washington.edu's password:
sftp> put eval-2002
eval-2002 | 9 kB | 9.7 kB/s | TOC: 00:00:01 | 100%
sftp> get tetet
tetet | 0 kB | 0.0 kB/s | TOC: 00:00:01 | 100%
sftp> quit
homer22%
First, the "sftp" command is issued from Homer, specifying the Internet address
of the computer in a UW department. This connects to the remote account, and
then SFTP prompts for the password for that account. Next, the "put" subcommand
is used to take the binary "eval-2002" file on Homer and send it to the remote
computer. After that "get" is used to grab the ascii "tetet" file from the
remote computer and send it to Homer. The "quit" subcommand closes the
connection and ends the SFTP 'client' session.
|