Using ClusterSSH for multiple ssh sessions

If you like me, sometimes requires typing same command in multiple ssh connections to remote servers, this is a useful tool: ClusterSSH. HomePage: http://sourceforge.net/projects/clusterssh/

At this moment I’m in Ubuntu 10.4, so:

Installation

Simple use aptitude to install the package:

sudo aptitude install clusterssh

Usage

Just open your regular terminal and type in this command:

cssh -l <username> <server1> <server2> …

That will open several terminals and also will open CSSH window. So, whatever you type in that windows will be reflected in every server!!!

As always you also can edit /etc/clusters file to put your own configurations, for more information visit the Home Page of the project.

Conclusion

This is a good tool to speed things up when handling multiple servers, however you should be very CAREFUL with it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s