Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 avoiding work at the Monastery: (4)
As of 2016-05-25 01:01 GMT
Find Nodes?
    Voting Booth?