Hai,
Can anyone suggest me how to provide the ssh password with in the shell script to connect to another server.
Thanks in Advance
Printable View
Hai,
Can anyone suggest me how to provide the ssh password with in the shell script to connect to another server.
Thanks in Advance
Well, it has been asked quite a few times... Thing is, you can't - not in a "normal" way.
Maybe you can write something in C++ or whatever programming language you master.
Wat you normally do when you need to login without any user action is use ssh keys. I found one instruction here: http://www.linuxproblem.org/art_9.html
(I haven't validated it but it looks correct.)
Hi,
Thanks for your response.
I have seen the provided link.
I just need to provide the password for the ssh remote log in only from the shell script but I don't want to configure the ssh without password.
Please help me in this regards
Thanks :)
I have seen about the sshpass utility....Will it work for the Redhat linux 5.4 version :)
You can use the expect tool.
Some examples are shown at: http://stackoverflow.com/questions/4...to-ssh-command
You can use the expect tool.