View Full Version : [ubuntu] ssh login script

November 29th, 2010, 09:04 AM
please tell me the way how can i write a script to login to a remote pc with ssh by integrating password inside the script?

November 29th, 2010, 09:31 AM

Short answer: You can't.

Long answer: Use Public Keys. Generate a key pair on your local machine with ssh-keygen (Important: Press enter when asked for a passphrase) and copy the public key to the remote machine.

Read the Snail book for details: http://www.snailbook.com/