What is the cause for the error message `SSHConnectionAborted` using Net::SSH::Expect?

While connecting to the remote host using the Net::SSH::Expect module, 2 out of 10 times I get the error SSHConnectionAborted.

I an unable to find the reason for this error and its solution. Can anybody please help me in this?

I am using the following Perl code:

my $Ssh = Net::SSH::Expect->new(
    host       =>,
    user       => Administrator,
    password   => Password,
    raw_pty    => 1,
    timeout    => 10,
    log_stdout => 1
eval {$Ssh_Login = $Ssh->login();};


Do not use Net::SSH::Expect, it is just not reliable!

Net::SSH2, Net::OpenSSH (does not work on Cygwin or Windows) or even Net::SSH::Perl are better options.

Update: If all of those fail, Expect may still be a good option.

Need Your Help

Is there some way of recycling a Crystal Reports dataset?

asp.net crystal-reports dataset

I'm trying to write a Crystal Report which has totals grouped in a different way to the main report. The only way I've been able to do this so far is to use a subreport for the totals, but it means

Best way to write a conversion function


Let's say that I'm writing a function to convert between temperature scales. I want to support at least Celsius, Fahrenheit, and Kelvin. Is it better to pass the source scale and target scale as se...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.