ssh2 icon indicating copy to clipboard operation
ssh2 copied to clipboard

feature request: better handling of unreachable hosts

Open ArnoldZokas opened this issue 12 years ago • 2 comments

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?

ArnoldZokas avatar Mar 14 '14 13:03 ArnoldZokas

You'll have to give some examples to reproduce this because I cannot seem to reproduce this on my end.

mscdex avatar Mar 14 '14 13:03 mscdex

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).

mkozjak avatar Mar 30 '14 19:03 mkozjak