MPSSH(1)
πΈ NAME πΈ
mpssh β the main character of parallel ssh, bestie. She runs your one command on a whole squad of hosts at the same time and she does it flawlessly π
This is the manual page for mpssh(1) and yes, we're gonna read the whole thing together, no skimming π«Ά
π SYNOPSIS π
mpssh
[-besvV] [-o directory] [-u username] [-f hosts] [-p procs]
<command>
that's the whole vibe check right there β¨
β¨ DESCRIPTION β¨
So like, here's the flag menu, alphabetically, because we're organized like that π
-b,--blindβ turns on blind mode, aka no remote output at all π-d,--delayβ how long to chill between each ssh fork (default10msec) β³-e,--exitβ prints out the remote command's return code, so you know if it ate π-f,--file=FILEβ the name of the file holding your list of hosts π-h,--helpβ this screen, hi bestie π-l,--label=LABELβ only connect to hosts sitting under labelLABELπ·οΈ-o,--outdir=DIRβ saves the remote output into this directory π-p,--procs=NPROCβ how many parallel ssh processes you want (default100) π₯-s,--nokeychkβ disables ssh strict host key checking π³-t,--conntmoutβ ssh connect timeout (default30sec) β-u,--user=USERβ ssh login as this username π-v,--verboseβ be more verbose (i.e. show usernames used) π£οΈ-V,--versionβ show program version, the classic π
The mpssh utility executes multiple parallel ssh binary instances in order to connect to a list of hosts (specified in the hosts file) and execute the given <command> on each of them. Literally a whole group chat but for servers π¦
A list of flags and arguments with description:
-bβ This flag enables "blind" mode, in which no output from the remote hosts is output to the screen. This mode is normally used with the-oflag, so the output is saved to disk instead. Not me silencing the whole squad π-dβ This flag sets some delay in msecs between eachfork()/exec()of the ssh process. Pacing, bestie, it's called pacing β³-eβ With this flagmpsshprints the return codes of the remotely executed commands. Receipts! π§Ύ-l -LABELβ Only connect to the hosts under the given label. It's giving VIP section π·οΈ-sβ This flag disables thessh(1)'s strict host key checking. For more info see thessh(1)manual page. Careful with this one, she's spicy πΆοΈ-vβ This flag makes the output more verbose. Spill the tea, tell me everything π΅-o directoryβ This option creates files in the specified directory named after each host name listed in the"hosts"file and saves the output received from the remotely executed command there. If the directory does not exists and attempt is made to be created. She'll build the folder herself, self-sufficient queen π-u usernameβ This forces ssh to use the supplied username instead of the username of the current user. Glow-up but for your identity β¨-f hostsβ A file containing a list of hosts to whom we are going to connect. One host per line. Lines starting with#are skipped. If not specified$HOME/.mpssh/hostswill be used. Default behavior, we love her π-p procsβ Spawn up-to"procs"number of ssh processes in parallel. Multitasking icon behavior π₯
π FILES π
/usr/bin/mpsshβ The mpssh binary π«Ά
π SEE ALSO π
ssh(1), ssh-keygen(1), ssh-agent(1)
and that's the whole page, bestie, you're officially certified π
This one is dated 08/03/2013 and comes from mpssh() β so yeah, she's been iconic for a minute. Go forth and ssh in parallel, no cap πβπ
π¦ where this page comes from
- epel 9: mpssh 1.3.3-22.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: mpssh 1.3.3-25.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: mpssh 1.3.3-26.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms