|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: help to deal with ssh connectionby vinoth.ree (Monsignor) |
| on May 18, 2014 at 17:21 UTC ( [id://1086519]=note: print w/replies, xml ) | Need Help?? |
|
You can execute commands on remote host using a Perl script using the Net::SSH::Perl module. This module allows you to execute a command remotely and receive the STDOUT, STDERR, and exit status of that remote host command. One big advantage of Net::SSH::Perl over other methods is that you can automate the login process, that way you can write fully automated perl scripts, no console interaction is required in order to authenticate in the remote machine.
But if you use Net::OpenSSH module, check useful info from this node Problems with Net::OpenSSH All is well
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||