sanketbajoria / ssh2-promise

ssh with promise/async await and typescript support
https://www.npmjs.com/package/ssh2-promise
MIT License
148 stars 25 forks source link

Timed out while waiting for handshake #51

Closed KwangGan closed 4 years ago

KwangGan commented 4 years ago

Hi, Thank for great library

I used this as SFTP Client to ReadStreamfile to S3 for year but now I got an error

"Timed out while waiting for handshake"

If I use SSH2 package to connect same server it works but with this SSH2-promise it stall and timeout

Could you please suggest :D

sanketbajoria commented 4 years ago

@KwangGan Can you please provide some code, how are you using it. (Config part and how you are streaming file.)

kpeters-cbsi commented 4 years ago

@KwangGan Are you trying to connect to SalesForce by any chance?

kpeters-cbsi commented 4 years ago

I'm experiencing a similar problem, but only when connecting to a particular host. I've attached the log from a recent run. Note that I'm using this inside of a Lambda function.

log-events-viewer-result-2.zip

KwangGan commented 4 years ago

Thank you for reply

My problem solved.

I increase readyTimeout from 5 seconds to 20 seconds and It works as expect