You can install pssh (parallel ssh) on FreeBSD using any one of the following method.
To install the port:
# cd /usr/ports/security/pssh/
# make install clean
To add the package:
# pkg install pssh
Sample outputs:
Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 842.6kB/s 00:07 Processing entries: 100% FreeBSD repository update completed. 25856 packages processed. The following 7 package(s) will be affected (of 0 checked): New packages to be INSTALLED: pssh: 2.3.1 rsync: 3.1.2_6 libiconv: 1.14_10 python27: 2.7.13_1 libffi: 3.2.1 gettext-runtime: 0.19.8.1_1 py27-setuptools27: 32.1.0 Number of packages to be installed: 7 The process will require 73 MiB more space. 12 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching pssh-2.3.1.txz: 100% 36 KiB 37.3kB/s 00:01 Fetching rsync-3.1.2_6.txz: 100% 296 KiB 60.5kB/s 00:05 Fetching libiconv-1.14_10.txz: 100% 601 KiB 77.0kB/s 00:08 Fetching python27-2.7.13_1.txz: 100% 10 MiB 190.5kB/s 00:57 Fetching libffi-3.2.1.txz: 100% 34 KiB 35.2kB/s 00:01 Fetching gettext-runtime-0.19.8.1_1.txz: 100% 147 KiB 50.3kB/s 00:03 Fetching py27-setuptools27-32.1.0.txz: 100% 436 KiB 74.4kB/s 00:06 Checking integrity... done (0 conflicting) [1/7] Installing libffi-3.2.1... [1/7] Extracting libffi-3.2.1: 100% [2/7] Installing gettext-runtime-0.19.8.1_1... [2/7] Extracting gettext-runtime-0.19.8.1_1: 100% [3/7] Installing libiconv-1.14_10... [3/7] Extracting libiconv-1.14_10: 100% [4/7] Installing python27-2.7.13_1... [4/7] Extracting python27-2.7.13_1: 100% [5/7] Installing rsync-3.1.2_6... [5/7] Extracting rsync-3.1.2_6: 100% [6/7] Installing py27-setuptools27-32.1.0... [6/7] Extracting py27-setuptools27-32.1.0: 100% [7/7] Installing pssh-2.3.1... [7/7] Extracting pssh-2.3.1: 100% Message from python27-2.7.13_1: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== |
Examples and usage: How to use parallel ssh (PSSH) for executing ssh in parallel on a number of Linux/Unix/BSD servers