1mpssh LOCAL mpssh
2
4 mpssh
5
7 mpssh
8
9 [-besvV] [-o directory] [-u username] [-f hosts] [-p procs]
10 <command>
11
13 -b, --blind enable blind mode (no remote output)
14 -d, --delay delay between each ssh fork (default 10 msec)
15 -e, --exit print the remote command return code
16 -f, --file=FILE name of the file with the list of hosts
17 -h, --help this screen
18 -l, --label=LABEL connect only to hosts under label LABEL
19 -o, --outdir=DIR save the remote output in this directory
20 -p, --procs=NPROC number of parallel ssh processes (default 100)
21 -s, --nokeychk disable ssh strict host key check
22 -t, --conntmout ssh connect timeout (default 30 sec)
23 -u, --user=USER ssh login as this username
24 -v, --verbose be more verbose (i.e. show usernames used)
25 -V, --version show program version
26
27 The mpssh utility executes multiple parallel ssh binary instances in
28 order to connect to a list of hosts (specified in the hosts file) and
29 execute the given <command> on each of them.
30
31 A list of flags and arguments with description:
32
33 -b This flag enables "blind" mode, in which no output from the
34 remote hosts is output to the screen. This mode is normally used
35 with the -o flag, so the output is saved to disk.
36
37 -d This flag sets some delay in msecs between each fork()/exec() of
38 the ssh process.
39
40 -e With this flag mpssh prints the return codes of the remotely
41 executed commands.
42
43 -l -LABEL
44 Only connect to the hosts under the given label.
45
46 -s This flag disables the ssh(1)'s strict host key checking. For
47 more info see the ssh(1) manual page.
48
49 -v This flag makes the output more verbose.
50
51 -o directory
52 This option creates files in the specified directory named after
53 each host name listed in the "hosts" file and saves the output
54 received from the remotely executed command there. If the direc‐
55 tory does not exists and attempt is made to be created.
56
57 -u username
58 This forces ssh to use the supplied username instead of the
59 username of the current user.
60
61 -f hosts
62 A file containing a list of hosts to whom we are going to con‐
63 nect. One host per line. Lines starting with # are skipped. If
64 not specified $HOME/.mpssh/hosts will be used.
65
66 -p procs
67 Spawn up-to "procs" number of ssh processes in parallel.
68
70 /usr/bin/mpssh The mpssh binary
71
73 ssh(1), ssh-keygen(1), ssh-agent(1)
74
75 June 20, 2019