-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect hangs before KEXDH_GEX_REPLY in arm container for some remotes #842
Comments
Could you be running into this node issue? |
Indeed, the results of the command mentioned in that issue is interesting:
It takes 12 minutes for this crypto method to run. Do you think there's a solution to this issue, apart from waiting 12 minutes at each connection? Edit: I could probably try installing an older version of OpenSSL in the container if that's feasible security-wise. |
You could try limiting the
Also, the 'ecdh-*' and 'group-exchange' algorithms use different |
Thanks a lot for your troubleshooting advice! Unfortunately, the remote server quits the connection when I remove For the time being, I'm just going to switch to a different architecture and accept this as a current limitation of arm devices. But maybe that issue will be solved in node or openssl at some point (if cryptographically possible). |
I ran into this issue (timeouts >3min) recently when trying to run the
|
This note helped me immensely, it seems that this is a problematic My environment:
My fix was to do: Hope this helps some other poor soul! :) |
It's the other way around. v1.x added that feature, so the typescript definition is probably not up-to-date for v1.x. |
Ah sorry about that, you're absolutely correct, woops! I still think the Lambda problem should still be highlighted somewhere though |
This worked for me too. Using ssh2-sftp-client version Thank you mate, you literally saved me hours of headache. |
This thread was extremely helpful and saved me hours! Thank you!! |
Summary
This issue only seems to happen when connecting to some remotes and only when running
ssh2
on arm systems. I'm referring to the latest version0.8.5
here.I tested 3 remotes and
ssh2
won't connect to 2 of them, while 1 works just fine. (This might not be enough data to identify the problem, though.) Unfortunately, I don't have access to the SSH configuration of those remote servers and I want to try and support all of them in my app. Is there anything I can do to fix this?Non-working remotes identify as:
SSH-2.0-OpenSSH_7.1
andSSH-2.0-OpenSSH_7.5 FreeBSD-20170903
The working remote identifies as:
SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
.Negotiated key format, cipher and HMAC algorithm are identical, no matter which remote.
Steps to reproduce:
docker run -it arm32v6/node:12-buster
(I also tried witharm32v6/node:10-alpine
and other arm containers)cd ~ && npm add ssh2
server.js
with a basic exampleWhat I tried already:
readyTimeout: 99999
algorithms: { ciphers: ['aes128-ctr', 'aes192-ctr', 'aes256-ctr'] }
node:12-alpine
: It works as expectedIs there anything else I can try? Are these remote configurations simply not supported? I'm trying to run a node server using
ssh2
andssh2-sftp-client
on a RaspberryPi in the mentioned container.The text was updated successfully, but these errors were encountered: