cancel
Showing results for 
Search instead for 
Did you mean: 

giving password for ssh from file

Former Member
0 Kudos

Hi,

I wrote a simple script which has a single ssh connection. When its executed it asking for password of remote system. I need to store that password in a file and provide it as input to ssh. How can i accomplish this? I dont want to use passwordless ssh

Edited by: sathiya raghavan on May 18, 2008 7:29 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

Better use RSA keys without any password, see

http://www.mines.edu/~gmurray/HowTo/sshNotes.html

Markus

Former Member
0 Kudos

Markus

My problem is that i dont want human intervention. Even that rsa key technique has a scp step where i have to give the remote systems password. What i want is that password to be given automatically when the script runs

Edited by: sathiya raghavan on May 19, 2008 4:23 AM

markus_doehr2
Active Contributor
0 Kudos

This is done only ONCE during setup - after that you don´t need to enter a password.

Markus