Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: How to catch/avoid SSHConnectionAborted

by mjscott2702 (Pilgrim)
on Nov 15, 2010 at 15:24 UTC ( #871492=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to catch/avoid SSHConnectionAborted
in thread How to catch/avoid SSHConnectionAborted

What are the contents of the $login_output variable?

According to the Net::SSH::Expect manpage, it should contain some form of response from the server:

# 2) logon to the SSH server using those credentials. # test the login output to make sure we had success my $login_output = $ssh->login(); if ($login_output !~ /Welcome/) { die "Login has failed. Login output was $login_output"; }


Comment on Re^3: How to catch/avoid SSHConnectionAborted
Download Code
Re^4: How to catch/avoid SSHConnectionAborted
by daphnaw (Acolyte) on Nov 16, 2010 at 08:28 UTC
    The $login_output variable only contains the prompt for password: Password: I think its contents is installation dependent.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2015-07-02 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls