How do I include a password with SSH command? (want to make shell script)
Posted
by
Evan
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Evan
Published on 2012-12-01T09:35:26Z
Indexed on
2012/12/06
23:26 UTC
Read the original article
Hit count: 235
I'm trying to SSH to a server on startup with a .sh script, but that will require me to enter the password for the account on the server that I'm SSHing to. I did some RTFMing, and I see in "-o" that it has "PasswordAuthentication" but I'm not sure how or if I could use that option. As this will be in a shell script, obviously I'd like to have the password in that file, or in any case not have to enter in the password manually every time the script runs.
© Ask Ubuntu or respective owner