Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Perl ssh error

by keszler (Priest)
on Oct 10, 2011 at 05:21 UTC ( #930531=note: print w/ replies, xml ) Need Help??

in reply to Perl ssh error

Net::SSH::Perl's new method is documented as Net::SSH::Perl->new($host, %params). Try

my $ssh = Net::SSH::Perl->new($host, debug=>1, use_pty=>1 ); #-- authenticate $ssh->login($user, $password);

update - never mind, 'view source' let me see that the new appears to be OK.

Your use strict(); is wrong, that may be part of your problem.

$ perl -lE' > use strict(); > say $x; > ' $ perl -lE' use strict; say $x; ' Global symbol "$x" requires explicit package name at -e line 3. Execution of -e aborted due to compilation errors. $

Comment on Re: Perl ssh error
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930531]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-11-29 02:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls