steelbrain / node-ssh

SSH2 with Promises
MIT License
947 stars 94 forks source link

Timeout handshake #442

Open kalwinskidawid opened 2 years ago

kalwinskidawid commented 2 years ago

Hey, How to catch error inside client? const err = new Error('Timed out while waiting for handshake');

Error: Timed out while waiting for handshake at Timeout._onTimeout (server/node_modules/ssh2/lib/client.js:1014:23) at listOnTimeout (node:internal/timers:564:17) at process.processTimers (node:internal/timers:507:7) { level: 'client-timeout' }