On 9/5/05, Virat Gohil <[EMAIL PROTECTED]> wrote: > I put my public > key on remote machine for password eliminated login. > now how can i run commands under remote machine > through a script running on my machine because in a > script i gave following commands: > > ssh <address> > shutdown
First, make sure you can log into the other machie without needing to type a password for the other machine. This is achieved through moving your ssh public key to the remote machine and making it a trusted key there. Also, you might want to look into passphraseless ssh on the local side. Remember that this is a dangerous. Now, the good old man page of ssh (you did readit, didn't you?) says: ssh ... [EMAIL PROTECTED] [command] In other words, you must type: ssh [EMAIL PROTECTED] shutdown It has to be on one line. Thaths -- "This is everybody's fault but mine!" -- Homer J. Simpson ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ linux-india-help mailing list linux-india-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-india-help