[Ssh-sftp-perl-users] Need help with Net::SSH2
Brought to you by:
dbrobins
From: Bobby J. <bob...@se...> - 2006-03-29 23:58:38
|
Hi All, 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 libssh2-0.13 openssl-0.9.8a Zlib1g-dev Libterm-readkey-perl Net::SSH::Perl My script is: #!/usr/bin/perl use strict; use Net::SSH2; my $user =3D "root"; my $pass =3D "password"; my $host =3D "192.168.0.173"; my $ssh2 =3D Net::SSH2 -> new ( ); $ssh2->auth_password($user, $pass); $ssh2->connect($host); 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. Thanks for your help. Bobby Jafari Test Engineer Senetas Security Pty Ltd Office: +61 3 9868 4529 Mobile: +61 404 089 021 E-Mail: bob...@se... |