shell script ssh to multiple servers
Hey all, I'm new to shell scripting and kinda struck here with some of the commands
Code:
#!/usr/bin/expect Code:
#!/usr/bin/expect **btw Im using cygwin terminal to execute the script |
Hi,
there are already a number of tools for sshing to and running the same command on multiple hosts. Have a look, for example at, clusterssh, mussh, pssh, taktuk etc. Also, you should probably be using rsa public/private key authentication instead of entering a password for each host (searching for ssh-keygen and ssh-copy-id should provide a huge number of howtos on this topic). Cheers, Evo2. |
All times are GMT -5. The time now is 09:23 PM. |