ssh2
ssh2 copied to clipboard
feature request: better handling of unreachable hosts
When trying to ssh into a host that is unreachable, ssh2 throws a cryptic error:
Fatal error: undefined is not a function
There also is no stack trace, which makes it particularly tricky to diagnose. Could you implement better handling of this scenario?
You'll have to give some examples to reproduce this because I cannot seem to reproduce this on my end.
ArnoldZokas: Are you sure your host is unreachable? I get 'Connection :: error :: Error: connect ECONNREFUSED' on 'error' event if the host is not reachable (ping returns nothing).