Hi TK, Thaths,
Another way of doing this (with single-login -- not completely without
interaction) is to run
eval `ssh-agent ` ; ssh-add
in a shell to get your key automatically added to all ssh sessions
from that shell without firther interaction. You /will/ have to give
your pass phrase once when you run the ssh-add command above.
Regards,
-- Raju
>>>>> "Sudhakar" == Sudhakar Chandra <[EMAIL PROTECTED]> writes:
Sudhakar> Tulshekar Gangireddy proclaimed:
>> I am using SSH to connect between two systems. I have to
>> establish an ssh session between two systems. SSH asks for a
>> password when i try to do so. This password has to be passed
>> to the ssh password prompt programmatically. Basically i want
>> to avoid the user interaction for typing out the password at
>> the prompt. This is to say that i want to automate the process
>> of establishing an ssh session.
Sudhakar> This is because you have configured ssh to use a pass
Sudhakar> phrase. Run 'ssh-keygen -p', and when asked to type in
Sudhakar> a new pass phrase just type return / enter. You can now
Sudhakar> use ssh without the pass phrase.
Sudhakar> WARNING!!! Doing the above on a widely available
Sudhakar> machine is dangerous. Anyone who can break into your
Sudhakar> account can use it to log into other machines.
----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help