[Ssh-sftp-perl-users] Cannot connect with Net::SSH::Perl module to localhost
Brought to you by:
dbrobins
From: Bogdan C. <cri...@gm...> - 2009-09-15 13:20:11
|
I have used the following snippet: my $scon = Net::SSH::Perl->new ("localhost"); $scon->login("bogdan","xxx"); print "looking around ...\n"; my ($output,$errors,$exit) = $scon->cmd("ls -l"); print $output; and I get the following warnings/error: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at /usr/lib/perl5/site_perl/5.10.0/Crypt/DH.pm line 6 Permission denied at ./trial_ssh.pl line 8 Using ssh I am able to connect to localhost, but I would like to have the ability to provide a password as command line argument for the ssh client. I use openSUSE 11.1, x86_64. Could someone suggest how to fix the above code ? |