Chapter 6: Using PSFTP to transfer files securely
PSFTP, the PuTTY SFTP client, is a tool for transferring files securely between computers using an SSH connection.
PSFTP differs from PSCP in the following ways:
- PSCP should work on virtually every SSH server. PSFTP uses the new SFTP protocol, which is a feature of SSH-2 only. (PSCP will also use this protocol if it can, but there is an SSH-1 equivalent it can fall back to if it cannot.)
-
PSFTP allows you to run an interactive file transfer session, much like the Windows
ftpprogram. You can list the contents of directories, browse around the file system, issue multiplegetandputcommands, and eventually log out. By contrast, PSCP is designed to do a single file transfer operation and immediately terminate.
- 6.1 Starting PSFTP
- 6.2 Running PSFTP
- 6.2.1 General quoting rules for PSFTP commands
- 6.2.2 Wildcards in PSFTP
- 6.2.3 The
opencommand: start a session - 6.2.4 The
quitcommand: end your session - 6.2.5 The
closecommand: close your connection - 6.2.6 The
helpcommand: get quick online help - 6.2.7 The
cdandpwdcommands: changing the remote working directory - 6.2.8 The
lcdandlpwdcommands: changing the local working directory - 6.2.9 The
getcommand: fetch a file from the server - 6.2.10 The
putcommand: send a file to the server - 6.2.11 The
mgetandmputcommands: fetch or send multiple files - 6.2.12 The
regetandreputcommands: resuming file transfers - 6.2.13 The
dircommand: list remote files - 6.2.14 The
chmodcommand: change permissions on remote files - 6.2.15 The
delcommand: delete remote files - 6.2.16 The
mkdircommand: create remote directories - 6.2.17 The
rmdircommand: remove remote directories - 6.2.18 The
mvcommand: move and rename remote files - 6.2.19 The
!command: run a local Windows command
- 6.3 Using public key authentication with PSFTP