1psftp(1) PuTTY tool suite psftp(1)
2
3
4
6 psftp - interactive SFTP (secure file transfer protocol) client
7
9 psftp [options] [user@]host
10
12 psftp is an interactive text-based client for the SSH-based SFTP
13 (secure file transfer) protocol.
14
16 The command-line options supported by psftp are:
17
18 -V Show version information and exit.
19
20 -pgpfp Display the fingerprints of the PuTTY PGP Master Keys and exit,
21 to aid in verifying new files released by the PuTTY team.
22
23 -b batchfile
24 Use specified batchfile.
25
26 -bc Output batchfile commands.
27
28 -be Don't stop batchfile processing on errors.
29
30 -v Show verbose messages.
31
32 -load session
33 Load settings from saved session.
34
35 -P port
36 Connect to port port.
37
38 -proxycmd command
39 Instead of making a TCP connection, use command as a proxy; net‐
40 work traffic will be redirected to the standard input and output
41 of command. command must be a single word, so is likely to need
42 quoting by the shell.
43
44 The special strings %host and %port in command will be replaced
45 by the hostname and port number you want to connect to; to get a
46 literal % sign, enter %%.
47
48 Backslash escapes are also supported, such as sequences like \n
49 being replaced by a literal newline; to get a literal backslash,
50 enter \\. (Further escaping may be required by the shell.)
51
52 (See the main PuTTY manual for full details of the supported %-
53 and backslash-delimited tokens, although most of them are proba‐
54 bly not very useful in this context.)
55
56 -l user
57 Set remote username to user.
58
59 -batch Disable interactive prompts.
60
61 -no-sanitise-stderr
62 By default, PSFTP will filter control characters from the stan‐
63 dard error channel from the server, to prevent remote processes
64 sending confusing escape sequences. This option forces the stan‐
65 dard error channel to not be filtered.
66
67 -pw password
68 Set remote password to password. CAUTION: this will likely make
69 the password visible to other users of the local machine (via
70 commands such as `w').
71
72 -1 Force use of SSH protocol version 1.
73
74 -2 Force use of SSH protocol version 2.
75
76 -4, -6 Force use of IPv4 or IPv6 for network connections.
77
78 -C Enable SSH compression.
79
80 -i keyfile
81 Private key file for user authentication. For SSH-2 keys, this
82 key file must be in PuTTY's PPK format, not OpenSSH's format or
83 anyone else's.
84
85 If you are using an authentication agent, you can also specify a
86 public key here (in RFC 4716 or OpenSSH format), to identify
87 which of the agent's keys to use.
88
89 -noagent
90 Don't try to use an authentication agent.
91
92 -agent Allow use of an authentication agent. (This option is only nec‐
93 essary to override a setting in a saved session.)
94
95 -hostkey key
96 Specify an acceptable host public key. This option may be speci‐
97 fied multiple times; each key can be either a fingerprint
98 (99:aa:bb:...) or a base64-encoded blob in OpenSSH's one-line
99 format.
100
101 Specifying this option overrides automated host key management;
102 only the key(s) specified on the command-line will be accepted
103 (unless a saved session also overrides host keys, in which case
104 those will be added to), and the host key cache will not be
105 written.
106
107 -sshlog logfile
108
109
110 -sshrawlog logfile
111 These options make psftp log protocol details to a file. (Some
112 of these may be sensitive, although by default an effort is made
113 to suppress obvious passwords.)
114
115 -sshlog logs decoded SSH packets and other events (those that -v
116 would print). -sshrawlog additionally logs the raw encrypted
117 packet data.
118
120 For a list of commands available inside psftp, type help at the psftp>
121 prompt.
122
124 For more information on psftp it's probably best to go and look at the
125 manual on the PuTTY web page:
126
127 https://www.chiark.greenend.org.uk/~sgtatham/putty/
128
130 This man page isn't terribly complete. See the above web link for bet‐
131 ter documentation.
132
133
134
135PuTTY tool suite 2004‐03‐24 psftp(1)