sthirumalai has asked for the wisdom of the Perl Monks concerning the following question:
Reading configuration data /.ssh/config
Reading configuration data /etc/ssh_config
Connecting to <host....>, port 22.
Remote protocol version 2.0, remote software version OpenSSH_5.2
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at C:/Perl/site/lib/Crypt/DH.pm line 6
Net::SSH::Perl Version 1.34, protocol version 2.0.
The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Perl/SSH2.pm line 39, <GEN0> line 1.
If the getpwuid function is unimplemented, then how can we make SSH communication in perl script in windows. Or is there any other way to do this... Appreciate your help. Thanks, Thiruuse strict; use warnings; use Net::SSH::Perl; my $host = shift @ARGV; my $user = shift @ARGV; my $pass = shift @ARGV; my $cmd = shift @ARGV; my $ssh = Net::SSH::Perl->new($host, debug => 1); $ssh->login($user, $pass); my @sV= $ssh->cmd($cmd); .... .... .... $ssh->close();
|
|---|