Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: EXPORT and Net::Openssh

by salva (Monsignor)
on Apr 19, 2013 at 07:29 UTC ( #1029468=note: print w/ replies, xml ) Need Help??


in reply to EXPORT and Net::Openssh

I can't see why your script behaves differently when you put the login parameters in a different module but in any case, instead of mixing them all in one string, you can pass then to Net::OpenSSH as different arguments:

my $ssh = Net::OpenSSH->new($host, user => $user, password => $password, timeout => 10);
You can also activate debugging in order to see what is going on:
$Net::OpenSSH::debug = -1;


Comment on Re: EXPORT and Net::Openssh
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-07-26 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (176 votes), past polls