lkinley / Net-SSH-Perl

Development on the Net::SSH::Perl module to support latest ciphers, key exchange mechanisms, etc.
Other
14 stars 9 forks source link

Net::SSH::Perl doesn't respect ConnectTimeout option #17

Open jobman-mike opened 2 years ago

jobman-mike commented 2 years ago

Net::SSH::Perl seems to ignore "ConnectTimeout" and proceeds to hang for a while. This makes it tricky to use with a batch of servers (When one stops responding)

E.g:

my $ssh    = Net::SSH::Perl->new($_, options => [
"Compression $UseCompression",
"Port $port",
"IdentityFile $IdentityFile",
"BatchMode yes",
"ConnectTimeout=5"]);

Is this likely to be something that can easily be resolved?

briandfoy commented 1 year ago

I've forked this project at briandfoy/net-ssh-perl, and you can reopen this issue there if you'd like. Otherwise, I'll add it myself at some later time. See #22.

If you include text like transferred from linkley/Net-SSH-Perl#17, GitHub should make a reference between the two issues. You should see such a reference in this issue now.

I don't have a fix for this issue, but can merge someone else's work.