1pscp(1) General Commands Manual pscp(1)
2
3
4
6 pscp — parallel file upload program
7
8
9
11 pscp [-vAr] [-h hosts_file] [-H [user@]host[:port]] [-l user] [-p par]
12 [-o outdir] [-e errdir] [-t timeout] [-O options] [-x args] [-X arg]
13 local remote
14
15
16
18 pscp is a program for copying files in parallel to a number of hosts
19 using the scp program. It provides features such as passing a password
20 to scp, saving output to files, and timing out.
21
22
23
25 -h host_file
26 --hosts host_file
27 Read hosts from the given host_file. Lines in the host file are
28 of the form [user@]host[:port] and can include blank lines and
29 comments (lines beginning with "#"). If multiple host files are
30 given (the -h option is used more than once), then pscp behaves
31 as though these files were concatenated together. If a host is
32 specified multiple times, then pscp will connect the given num‐
33 ber of times.
34
35 -H [user@]host[:port]
36 --host [user@]host[:port]
37 -H "[user@]host[:port] [ [user@]host[:port ] ... ]"
38 --host "[user@]host[:port] [ [user@]host[:port ] ... ]"
39 Add the given host strings to the list of hosts. This option
40 may be given multiple times, and may be used in conjunction with
41 the -h option.
42
43 -l user
44 --user user
45 Use the given username as the default for any host entries that
46 don't specifically specify a user.
47
48 -p parallelism
49 --par parallelism
50 Use the given number as the maximum number of concurrent connec‐
51 tions.
52
53 -t timeout
54 --timeout timeout
55 Make connections time out after the given number of seconds.
56 With a value of 0, pscp will not timeout any connections.
57
58 -o outdir
59 --outdir outdir
60 Save standard output to files in the given directory. Filenames
61 are of the form [user@]host[:port][.num] where the user and port
62 are only included for hosts that explicitly specify them. The
63 number is a counter that is incremented each time for hosts that
64 are specified more than once.
65
66 -e errdir
67 --errdir errdir
68 Save standard error to files in the given directory. Filenames
69 are of the same form as with the -o option.
70
71 -x args
72 --extra-args args
73 Passes extra SSH command-line arguments (see the ssh(1) man page
74 for more information about SSH arguments). This option may be
75 specified multiple times. The arguments are processed to split
76 on whitespace, protect text within quotes, and escape with back‐
77 slashes. To pass arguments without such processing, use the -X
78 option instead.
79
80 -X arg
81 --extra-arg arg
82 Passes a single SSH command-line argument (see the ssh(1) man
83 page for more information about SSH arguments). Unlike the -x
84 option, no processing is performed on the argument, including
85 word splitting. To pass multiple command-line arguments, use
86 the option once for each argument.
87
88 -O options
89 --options options
90 SSH options in the format used in the SSH configuration file
91 (see the ssh_config(5) man page for more information). This
92 option may be specified multiple times.
93
94 -A
95 --askpass
96 Prompt for a password and pass it to ssh. The password may be
97 used for either to unlock a key or for password authentication.
98 The password is transferred in a fairly secure manner (e.g., it
99 will not show up in argument lists). However, be aware that a
100 root user on your system could potentially intercept the pass‐
101 word.
102
103 -v
104 --verbose
105 Include error messages from ssh with the -i and \ options.
106
107 -r
108 --recursive
109 Recursively copy directories.
110
111
112
113
114
116 The ssh_config file can include an arbitrary number of Host sections.
117 Each host entry specifies ssh options which apply only to the given
118 host. Host definitions can even behave like aliases if the HostName
119 option is included. This ssh feature, in combination with pssh host
120 files, provides a tremendous amount of flexibility.
121
122
124 The exit status codes from pscp are as follows:
125
126 0 Success
127
128 1 Miscellaneous error
129
130 2 Syntax or usage error
131
132 3 At least one process was killed by a signal or timed out.
133
134 4 All processes completed, but at least one scp process reported
135 an error (exit status other than 0).
136
137
139 Written by Brent N. Chun <bnc@theether.org> and Andrew McNabb <amcn‐
140 abb@mcnabbs.org>.
141
142 https://github.com/lilydjwg/pssh
143
144
146 ssh(1), ssh_config(5), pssh(1), prsync(1), pslurp(1), pnuke(1),
147
148
149
150 January 24, 2012 pscp(1)