Re: [Q] how to habdle password with SSH on batch script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx'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



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux