FW: [Ssh-sftp-perl-users] Need help with Net::SSH2
Brought to you by:
dbrobins
From: Sander P. <San...@da...> - 2006-03-30 00:05:37
|
Sorry, forgot to copy the list. ________________________________ From: Sander Pool=20 Sent: Wednesday, March 29, 2006 4:05 PM To: 'Bobby Jafari' Subject: RE: [Ssh-sftp-perl-users] Need help with Net::SSH2 =20 Bobby, =20 not sure what an unnaturalized value is, sorry. I use Net::SSH::Perl with password authentication. Check the 'login' method. =20 Sander ________________________________ From: ssh...@li... [mailto:ssh...@li...] On Behalf Of Bobby Jafari Sent: Wednesday, March 29, 2006 3:58 PM To: ssh...@li... Subject: [Ssh-sftp-perl-users] Need help with Net::SSH2 Hi All,=20 What I am trying to do is connect to Embedded Linux devices and run Linux command remotely. The perl scripts will be running on a debian Linux server. I have installed the following packages on the debian Linux Server: Net-SSH2-0.07=20 libssh2-0.13=20 openssl-0.9.8a=20 Zlib1g-dev=20 Libterm-readkey-perl=20 Net::SSH::Perl=20 My script is:=20 #!/usr/bin/perl=20 use strict;=20 use Net::SSH2;=20 my $user =3D "root";=20 my $pass =3D "password";=20 my $host =3D "192.168.0.173";=20 my $ssh2 =3D Net::SSH2 -> new ( );=20 $ssh2->auth_password($user, $pass);=20 $ssh2->connect($host);=20 The problem is that the last line always complains about an unnaturalized value. I also can't figure out how to send a Linux command once I have a connection? Using RSA authentication is out of the question due to the environment that I am running the tests. I don't think I can use the module Net::SSH:Perl as It doesn't seem to support password authentication. If anyone knows how to use Net::SSH:Perl with password authentication please let me know. Also any help with Net:SSH2 would be mostly appreciated.=20 Thanks for your help.=20 Bobby Jafari Test Engineer Senetas Security Pty Ltd Office: +61 3 9868 4529 Mobile: +61 404 089 021 E-Mail: bob...@se...=20 |