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"; }
In reply to Re^3: How to catch/avoid SSHConnectionAborted
by mjscott2702
in thread How to catch/avoid SSHConnectionAborted
by daphnaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |