Results 1 to 5 of 5
Here is my small script:
Code:
#!/bin/sh
ssh 10.0.0.5
thepassword
Now when i launch the script, it doesn't log into the remote system but prompts me for the password although ...
- 07-08-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 16
how can I log in to a remote system using a shell script!!!
Here is my small script:
Code:
#!/bin/sh
ssh 10.0.0.5
thepassword
Now when i launch the script, it doesn't log into the remote system but prompts me for the password although I wrote the password in the script..
How can I make the Shell read the password from my script???
- 07-08-2009 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
You can't, ssh won't allow it. The common method is to use public/private keys.
- 07-08-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 16
How about telnet. Can I log to the remote system using telnet?
- 07-08-2009 #4Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Google: bash expect ssh
First link => SSH login expect shell script to supply username and password
- 07-08-2009 #5Just Joined!
- Join Date
- Jun 2009
- Posts
- 16
Thanks, HROAdmin26............Your link is pefect....


Reply With Quote