- sudo easy_install pip
- sudo pip install pssh
- Create a file with the list of servers you want to control, call it servers or something similar
- pssh -h servers "date"
- Put your ssh pub key up to all of them
- pssh -h servers -i "echo 'ssh-rsa AA...wh me@myfqdn' >> /home/user/.ssh/authorized_keys"
Taken: http://kaspergrubbe.dk/2012/using-pssh-for-executing-parallel-ssh-commands/
Note: csshX is very nice if you want to see all terminals at once as you type, more later
Note: csshX is very nice if you want to see all terminals at once as you type, more later
No comments:
Post a Comment
Note: only a member of this blog may post a comment.