Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: net::ssh::expect net::scp::expect problem

by atcroft (Abbot)
on Oct 07, 2015 at 18:47 UTC ( [id://1144098]=note: print w/replies, xml ) Need Help??


in reply to net::ssh::expect net::scp::expect problem

I have used the Net::SSH::Expect module seceral times in work-related projects. In your output (side tip: wrap it in <code></code> tags for readability), I see in the message (for Net::SSH::Expect) "SSHAuthenticationError Login timed out." I would begin by enabling logging by adding the following to the Net::SSH::Expect->new() call (where $outfile is a file location the script can write to):

log_file => $outfile, exp_debug => 1, exp_internal => 1,
Next, I would check that the prompt you expect to see for a successful login matches those checked for by the modules, and if necessary you may need to specify the prompt to expect, or alter the method you are using (depending on the way you are doing so in your code).

Hope that helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-19 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found