[Q] how to habdle password with SSH on batch script?
Chris Purcell
redhat at cjp.us
Mon May 10 20:44:22 UTC 2004
bbaa aaa said:
> I plan to use "ssh" on batch script to call remote computer execute
> another script. I still have problem on "ssh" password. the command I
> use is similiar to:
>
> ssh -l user1 172.2.4.40 date
> user1 at 172.2.4.40's password: <== system pop-up to ask
>
> How can I handle this on batch file?
>
> Thanks.
You can set up password-less logins for that specific host where the
script will run from...
http://www.hackinglinuxexposed.com/articles/20021211.html
If this is a Perl script, you can use the Net::SSH module and put your
password in the script.
ChrisP, RHCE
More information about the redhat-list
mailing list