1pscp(1)                        PuTTY tool suite                        pscp(1)
2
3
4

NAME

6       pscp - command-line SCP (secure copy) / SFTP client
7

SYNOPSIS

9       pscp [options] [user@]host:source target
10       pscp [options] source [source...] [user@]host:target
11       pscp [options] -ls [user@]host:filespec
12

DESCRIPTION

14       pscp  is  a command-line client for the SSH-based SCP (secure copy) and
15       SFTP (secure file transfer protocol) protocols.
16

OPTIONS

18       The command-line options supported by pscp are:
19
20       -V     Show version information and exit.
21
22       -pgpfp Display the fingerprints of the PuTTY PGP Master Keys and  exit,
23              to aid in verifying new files released by the PuTTY team.
24
25       -ls    Remote directory listing.
26
27       -p     Preserve file attributes.
28
29       -q     Quiet, don't show statistics.
30
31       -r     Copy directories recursively.
32
33       -unsafe
34              Allow server-side wildcards (DANGEROUS).
35
36       -v     Show verbose messages.
37
38       -load session
39              Load settings from saved session.
40
41       -P port
42              Connect to port port.
43
44       -proxycmd command
45              Instead of making a TCP connection, use command as a proxy; net‐
46              work traffic will be redirected to the standard input and output
47              of  command. command must be a single word, so is likely to need
48              quoting by the shell.
49
50              The special strings %host and %port in command will be  replaced
51              by the hostname and port number you want to connect to; to get a
52              literal % sign, enter %%.
53
54              Backslash escapes are also supported, such as sequences like  \n
55              being replaced by a literal newline; to get a literal backslash,
56              enter \\. (Further escaping may be required by the shell.)
57
58              (See the main PuTTY manual for full details of the supported  %-
59              and backslash-delimited tokens, although most of them are proba‐
60              bly not very useful in this context.)
61
62       -l user
63              Set remote username to user.
64
65       -batch Disable interactive prompts.
66
67       -no-sanitise-stderr
68              By default, PSCP will filter control characters from  the  stan‐
69              dard  error channel from the server, to prevent remote processes
70              sending confusing escape sequences. This option forces the stan‐
71              dard error channel to not be filtered.
72
73       -pw password
74              Set  remote password to password. CAUTION: this will likely make
75              the password visible to other users of the  local  machine  (via
76              commands such as `w').
77
78       -1     Force use of SSH protocol version 1.
79
80       -2     Force use of SSH protocol version 2.
81
82       -4, -6 Force use of IPv4 or IPv6 for network connections.
83
84       -C     Enable SSH compression.
85
86       -i keyfile
87              Private  key  file for user authentication. For SSH-2 keys, this
88              key file must be in PuTTY's PPK format, not OpenSSH's format  or
89              anyone else's.
90
91              If you are using an authentication agent, you can also specify a
92              public key here (in RFC 4716 or  OpenSSH  format),  to  identify
93              which of the agent's keys to use.
94
95       -noagent
96              Don't try to use an authentication agent.
97
98       -agent Allow  use of an authentication agent. (This option is only nec‐
99              essary to override a setting in a saved session.)
100
101       -hostkey key
102              Specify an acceptable host public key. This option may be speci‐
103              fied  multiple  times;  each  key  can  be  either a fingerprint
104              (99:aa:bb:...) or a base64-encoded blob  in  OpenSSH's  one-line
105              format.
106
107              Specifying  this option overrides automated host key management;
108              only the key(s) specified on the command-line will  be  accepted
109              (unless  a saved session also overrides host keys, in which case
110              those will be added to), and the host  key  cache  will  not  be
111              written.
112
113       -scp   Force use of SCP protocol.
114
115       -sftp  Force use of SFTP protocol.
116
117       -sshlog logfile
118
119
120       -sshrawlog logfile
121              These options make pscp log protocol details to a file. (Some of
122              these may be sensitive, although by default an effort is made to
123              suppress obvious passwords.)
124
125              -sshlog logs decoded SSH packets and other events (those that -v
126              would print). -sshrawlog additionally  logs  the  raw  encrypted
127              packet data.
128

MORE INFORMATION

130       For  more  information on pscp it's probably best to go and look at the
131       manual on the PuTTY web page:
132
133       https://www.chiark.greenend.org.uk/~sgtatham/putty/
134

BUGS

136       This man page isn't terribly complete. See the above web link for  bet‐
137       ter documentation.
138
139
140
141PuTTY tool suite                  2004‐03‐24                           pscp(1)
Impressum