I am trying to find out how to setup a script to login to my servers via ssh and preform pre-selected commands. For example I could use it go go in and change the password on all of the servers or maybe update a certan software package. Thought it might be handy to have and I need a little help with the logging in and passing the variables through ssh. If someone has or has seen a script that will do something like this please feel free to post the code and I can make the changes needed for my system.
Take a look at ssh keys, that will allow you to login to a server without a password. I do not have the exact syntax but if you look at the o'reilly book server hacks you can find a few hacks that do just this. Once you get a password-less ssh login it should be easy to get a script going
John W, CISSP, C|EH
MS Information Security and Assurance ITEagleEye.com - Server Administration and Security Yawig.com - Managed VPS and Dedicated Servers with VIP Service