PSSH, run commands on multiple remote servers simultaneously

psh

OpenSSH It is one of the tools most used by system administrators and it is logical that this is the case since it allows us to interact with any computer remotely but as if we were sitting right there and we even have, through X11 Forwarding, the ability to view any GUI. But there is a logical limitation, and that is that we need to open a connection for each remote computer that we access, for which we need as many terminal windows.

But free software always has surprises for us, and there is a tool like PSSH that allows us run commands via SSH on multiple remote servers from a single shell, thus saving resources and gaining a lot in agility when handling them. It is a very interesting project, developed in Python and that offers a very intelligent and simple operation for those of us who have already used SSH on a regular basis.

Is that PSSH is made up of various utilities, which offer us complete functionality when it comes to managing remote servers since we have a program like pscp to copy files to several hosts in parallel, prsync to synchronize files to several hosts simultaneously, pnuke to end or 'kill' processes on multiple hosts and pslurp to copy files from multiple remote hosts to one machine. As we can see, the possibilities that all of them offer us are impressive since we can perform a simultaneous backup to two computersInter alia.

PSSH can be installed if we download and install Pip in our distro; For those who do not know this tool, we can say that it is a command that facilitates installation and management of Python-based software. Once we have it installed (it is in the official repositories of the main distros, it is called python-pip) we do something as simple as:

# pip install pssh

This tool will do its thing and we will have PSSH installed, then it will be time to configure the hosts file, which does not exist and we must create it to add the IP address of the hosts to which we are going to access. We can learn more by running 'pssh –help' but we can safely say that Parallel SSH or PSSH it is a very complete and versatile tool, whose functionality may be what many of the SysAdmins were waiting for.

Further information: PSSH (in Google Code)


A comment, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Fernando said

    Interesting! to put it into practice