this is obsolete doc -- see http://doc.nethence.com/ instead

SSH cluster 

 

http://pbraun.nethence.com/doc/security/sshd.html 

http://pbraun.nethence.com/doc/security/sshd_windows.html 

http://pbraun.nethence.com/doc/security/ssh_cluster.html 

http://pbraun.nethence.com/doc/security/ssh_tunneling.html 

 

http://pbraun.nethence.com/doc/net/ftpinstallsrv.html 

http://pbraun.nethence.com/doc/net/pxe.html 

http://pbraun.nethence.com/doc/security/ssh_cluster.html 

http://pbraun.nethence.com/doc/sysutils_linux/kickstart.html 

 

 

Create the SSH cluster configuration, 

vi cluster.conf

like, 

node1
node2
node3

 

Make sure those resolve, 

vi /etc/hosts

like, 

...
10.1.1.1    node1.example.net  node1
10.1.1.2    node2.example.net  node2
10.1.1.3    node3.example.net  node3

 

Create the SSH cluster script, 

vi sccluster.ksh

like, 

#!/bin/ksh

 

        for node in `sed '/^#/d' cluster.conf`; do
                print "$node: \c"
                ssh $node "$@"
                print ''
        done

make it executable, 

chmod +x sccluster.ksh

 

Create and populate your SSH keys, 

ssh-keygen -P''
cat ~/ssh/id_rsa.pub

copy/paste to each node, 

mkdir -p ~/.ssh
chmod 700 ~/.ssh
cat >> ~/ssh/authorized_keys2 <<EOF9
PASTE SSH PUBLIC KEY HERE
EOF9
chmod 600 ~/.ssh/authorized_keys2

Note. to make it work with SSH protocol 1 too, 

#cd ~/
#ln -s authorized_keys2 authorized_keys

 

Ready to go, 

./sccluster.ksh "hostname"