Cluster SSH awesomeness

Preparing our institute’s cluster for an OpenStack installation I got into the situation where I had to manually configure several servers in the same way. Of course, since repeating the same terminal commands isn’t all that fun, I went searching for a tool to simplify this. Enter Cluster SSH.

Cluster SSH in action, controling multiple servers at once.To install Cluster SSH, simply do a:

sudo apt-get install clusterssh

And using it is equally simple:

cssh hostname1 hostname2 hostname3 hostname4

This command will start 4 terminals and scale and position their windows automatically to fit your screen. You can then issue text into the main CSSH text form to transmit it directly to all the servers and see the results in their corresponding windows. It is also possible to enter commands directly to a certain terminal or use CSSH’s menu to select a subset.

Published by


Building apps, analysing data at Punk Rock Dev and sharing weird & cool photographs, drawings, music, films, games... More about me here. You can get new blog posts via RSS or follow @metakermit on Twitter where I also announce new stuff.

4 thoughts on “Cluster SSH awesomeness”

  1. If you don’t need anything interactive (meaning, you just want to enter lots of commands for lots of servers), then the “plink” utility also goes a long a way. It’s also great for repetitive tasks on multiple servers.

Leave a Reply

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