Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: SSH Permission Denied

by sub_chick (Hermit)
on Jun 20, 2008 at 03:36 UTC ( [id://693048]=note: print w/replies, xml ) Need Help??


in reply to SSH Permission Denied

use Net::SSH::Perl; my $ssh; $ssh = new Net::SSH::Perl("192.168.128.4"); $ssh->login("root"); ($x,$y,$z) = $ssh->cmd('pwd');
add:
Use warning; Use strict;
Also, you may want to change:
$ssh = new Net::SSH::Perl("192.168.128.4");
To:
$ssh = Net::SSH::Perl-> new("192.168.128.4");
And, is this your entire code? Are all your permissions and passwords the same on each box you're testing?
The third box may require a passwd in the line:
$ssh->login("root");
following "root"


Es gibt mehr im Leben als Bücher, weißt du. Aber nicht viel mehr. - (Die Smiths)"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-25 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found