June 24, 2018

Control multiple machines with ClusterSSH

Control multiple machines at the same time using xterm with ClusterSSH.

Installation: control multiple machines

Download and install EPEL repository:

yum install -y http://mirror.nonstop.co.il/epel/6/i386/epel-release-6-8.noarch.rpm

Install ClusterSSH using Yum:

yum install clusterssh -y

Configuration

Create a file named clusters in /etc/:

vi /etc/clusters
clusters = clustername
clustername = Linux1 Linux2 Linux3 Linux4

Make sure to have passwords less, login through all the Linux1, 2,3,4:

ssh-keygen
for i in Linux1 Linux2 Linux3 Linux4;ssh-copy-id $i;done

Usage

At the terminal, run the following command:

csshclustername

This article allows you to control multiple machines, you can check also how to install a NIS server:

Click here

About The Author

IT professional for 17 years in complex networking Linux and Windows environments.

Related posts

1 Comment

  1. Doron Gombosh

    cssh synchronizes the commands you type in, sending them to all the ssh tunnels at the same time. I’d suggest making sure that all of your remote machines have the same environment (if a command you type in behaves differently on one of the servers, you’ll lose sync).

    Reply

Leave a Reply

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