Category pssh

PSSH (parallel ssh)

PSSH How To

wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/parallel-ssh/pssh-2.3.1.tar.gz
tar -xzf pssh-2.3.1.tar.gz
python setup.py install

host list als File erstellen
vi hosts.txt ->
	server168.bb.bbmsg
	server169.bb.bbmsg

am besten überall den SSH RSA Key aktivieren.
ssh-keygen -v -b 8192 -t rsa
cat ~/.ssh/*.pub | ssh user@server169.bb.bbmsg 'cat>>.ssh/authorized_keys'
	cat /home/user/.ssh/id_rsa.pub | ssh user@server.domain.com 'sudo -u root sh -c "mkdir -p /home/user/.ssh; cat>>/home/user/.ssh/authorized_keys; chmod 0700 /home/user/.ssh/; chmod 0600 /home/user/.ssh/authorized_keys ; chown -R user:users /home/user/.ssh/"'

#Für Bourne Shell
eval `ssh-agent -s -t 120`
ssh-add -t 60 /home/user/...
Read More