Can not connect to linux machine through SSH

Hi ,I want to connect to linux machine through SSH to delete some file from /usr/local/
use strict;
use Net::SSH::Perl;
$host = "10.8.0.252";
$username = "root";
$old_password = "root";
my $ssh = Net::SSH::Perl->new($host, debug => 1, protocol => 2);
$ssh->login($username, $old_password);

Output
-------
Use of uninitialized value in concatenation (.) or string at C:/Perl/lib/Net/SSH
/Perl.pm line 107.
Reading configuration data /.ssh/config
Reading configuration data /etc/ssh_config
Connecting to 10.8.0.252, port 22.
Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2
 Net::SSH::Perl Version 1.27, protocol version 2.0.
Use of uninitialized value in concatenation (.) or string at C:/Perl/lib/Net/SSH
/Perl/SSH2.pm line 41, <GEN0> line 1.
Use of uninitialized value in concatenation (.) or string at C:/Perl/lib/Net/SSH
/Perl/SSH2.pm line 47, <GEN0> line 1.
No compat match: OpenSSH_3.7.1p2.
Can't set socket non-blocking: Bad file descriptor at C:/Perl/lib/Net/SSH/Perl.p
m line 212, <GEN0> line 1.

Where the problem ? I can connect to this machine when I use SSH Secure Shell Client

May be I can use another mdules to perform deletion ,when I use ftp module ,this directory /usr/local doesn't exist .

Wait for help ,
Thanks

Irina_dushaAsked:
Who is Participating?
 
TintinCommented:
Irina.

Are you running ActiveState Perl?

See http://www.soulcage.net/ppds/ for installing Net::SSH
0
 
TintinCommented:
How did you install Net::SSH::Perl?

What version of Perl are you running?
0
 
Vlad77Commented:
Just copied modules to Net/SSH,
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Vlad77Commented:
I think you just copied this module ,you should insert to CPAN shell
and then write install Net::SSH::Perl
maybe this will help you
0
 
TintinCommented:
I'm confused.

Vlad77 are you the same person as Irina?
0
 
Irina_dushaAuthor Commented:
Vlad77,
I can not install  Net::SSH::Perl from cpan ,I have some problem with

C:\>"C:\Program Files\Microsoft Visual Studio\VC98\Bin\NMAKE.EXE file

what's the connection to perl module ???Maybe I don't understand something ?
0
 
Irina_dushaAuthor Commented:
Tintin ,thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.