pscp(1)
π pscp(1) β the parallel file upload program, but make it a group chat π
okay bestie, so this is a page from the General Commands Manual, and it's literally all about pscp, which is a parallel file upload program. yes. parallel. it does the thing many times at once and it's iconic for it. π
β¨ NAME β¨
pscp β parallel file upload program π«Ά
πΈ SYNOPSIS πΈ
pscp [-vAr] [-h hosts_file] [-H [user@]host[:port]] [-l user] [-p par]
[-o outdir] [-e errdir] [-t timeout] [-O options] [-x args] [-X arg]
source dest
like. that's the shape of it. source, dest, and a whole lil bouquet of flags in between. no cap. π
π¦ DESCRIPTION π¦
so pscp is a program for copying files in parallel to a number of hosts, and it does it by using the scp program underneath. the way that it also gives you extras?? it provides features such as passing a password to scp, saving output to files, and timing out. it's giving "scp but make it a whole squad". π
π OPTIONS π
every single one, bestie. we're not skipping anybody, that's not the vibe.
-hhost_file,--hostshost_file β read hosts from the given host_file. lines in the host file are of the form[user@]host[:port]and can include blank lines and comments (lines beginning with#). if multiple host files are given (the-hoption is used more than once), thenpscpbehaves as though these files were concatenated together. and if a host is specified multiple times, thenpscpwill connect the given number of times. yes, on purpose. it said what it said. π-H [user@]host[:port],--host [user@]host[:port],-H "[user@]host[:port] [ [user@]host[:port ] ... ]",--host "[user@]host[:port] [ [user@]host[:port ] ... ]"β add the given host strings to the list of hosts. this option may be given multiple times, and may be used in conjunction with the-hoption. besties working together, we love to see it. π«Ά-luser,--useruser β use the given username as the default for any host entries that don't specifically specify a user. it's the backup plan username. main character fallback energy. β¨-pparallelism,--parparallelism β use the given number as the maximum number of concurrent connections. how many besties are knocking on doors at once. πͺ-ttimeout,--timeouttimeout β make connections time out after the given number of seconds. with a value of0,pscpwill not timeout any connections. zero means no timer at all, it's just gonna sit there and wait like a loyal friend. π-ooutdir,--outdiroutdir β save standard output to files in the given directory. filenames are of the form[user@]host[:port][.num]where the user and port are only included for hosts that explicitly specify them. the number is a counter that is incremented each time for hosts that are specified more than once. so like, numbered besties. π’-eerrdir,--errdirerrdir β save standard error to files in the given directory. filenames are of the same form as with the-ooption. same naming scheme, different vibe (it's the errors). π-xargs,--extra-argsargs β passes extra SSH command-line arguments (see thessh(1)man page for more information about SSH arguments). this option may be specified multiple times. the arguments are processed to split on whitespace, protect text within quotes, and escape with backslashes. to pass arguments without such processing, use the-Xoption instead. it's the β¨ processed β¨ one. π-Xarg,--extra-argarg β passes a single SSH command-line argument (see thessh(1)man page for more information about SSH arguments). unlike the-xoption, no processing is performed on the argument, including word splitting. to pass multiple command-line arguments, use the option once for each argument. raw. untouched. feral. πΎ-Ooptions,--optionsoptions β SSH options in the format used in the SSH configuration file (see thessh_config(5)man page for more information). this option may be specified multiple times. π§-A,--askpassβ prompt for a password and pass it tossh. the password may be used for either to unlock a key or for password authentication. the password is transferred in a fairly secure manner (e.g., it will not show up in argument lists). however, be aware that a root user on your system could potentially intercept the password. π¨ okay so that last part is real, root can theoretically snatch it, so know that going in. not me being the responsible friend for once. π€-v,--verboseβ include error messages fromsshwith the-iand-eoptions. it's the "tell me everything" button. π-r,--recursiveβ recursively copy directories. folders inside folders inside folders, we go deep. π--downloadβ download from remote instead of upload. the downloaded files will be placed inside a directory named after host. direction flip, plot twist, love that for us. π
π‘ TIPS π‘
the ssh_config file can include an arbitrary number of Host sections. each host entry specifies ssh options which apply only to the given host. Host definitions can even behave like aliases if the HostName option is included. this ssh feature, in combination with pssh host files, provides a tremendous amount of flexibility. like. the customization goes crazy. πβ¨
π¦ EXIT STATUS π¦
the exit status codes from pscp are as follows:
0β success π1β miscellaneous error π«2β syntax or usage error π3β at least one process was killed by a signal or timed out. π4β all processes completed, but at least onescpprocess reported an error (exit status other than0). π
π«Ά AUTHORS π«Ά
written by Brent N. Chun <bnc@theether.org> and Andrew McNabb <amcnabb@mcnabbs.org>.
https://github.com/lilydjwg/pssh
π SEE ALSO π
ssh(1), ssh_config(5), pssh(1), prsync(1), pslurp(1), pnuke(1),
okay that's the whole page bestie, every flag accounted for, no crumbs left. π
and for the cute sign-off: this lil legend is dated January 24, 2012, and it lives in the pscp(1) manual page. periodt. ππ
π¦ where this page comes from
- epel 10: pssh 2.3.5-8.el10_0 Β· LicenseRef-Callaway-BSD
- fedora 43: pssh 2.3.5-13.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: pssh 2.3.6-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: pssh 2.3.6-2.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms