-
Notifications
You must be signed in to change notification settings - Fork 7
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
SSH connection hangs after ssh-key was accepted. #5
Comments
I would suggest trying the regular |
I regenerated the same type and length of the key as the one which is working with standard ssh-add and ssh-agent, but it is still hangs after the server accepts the key. Here are two sanitized logs: This one is from normal ssh-agent authentication: normal.log This one is from the tergent: tergent.log Any clues what can try next? |
That is interesting, from what I understand at that point the client should be able to create a session. Did you try the suggestions posted here https://serverfault.com/questions/481966? |
Hi! It seems I nailed that issue (at least for my environment).
We can see that ssh reads message length and gets 0x00000119=281, than tries to read 281 bytes, but only gets 276, starts new read to get last 5 bytes and waits indefinitely. It seems to be pretty easy fix around Line 17 in 34d7d54
Line 21 in 34d7d54
Hoping for some fix :) PS: I know that OpenSSH just issued warning about ssh-rsa being depreceted in future releases, but updates come slowly to embeded devices, and even upstream dropbear has not yet published version with newer algorithms support, so we can assume ssh-rsa is going to be in use at least for a while. |
@luzhkovvv: Well, I am impressed... :) |
I'm facing a similar issue: other ssh server versions (I tried 7.9p1-10+deb10u2 and 8.0p1) work. |
Hello, sorry for the late reply. @luzhkovvv thanks for the great investigation! Since then I have implemented #4, so those hardcoded values are now gone. ssh-agent protocol was unmaintable because of issues like this and more, and now tergent has a more robust cryptoki interface. See release 1.0 page here. Please note that if you wish to upgrade, you will need to follow the README as you'll need to generate new keys. I don't have a way to replicate this issue on my end so hopefully this release should solve that problem too. |
I tried the tergent on my android phone. I did follow all the steps and tried to connect using
ssh -vv user@myServer
. I saw the key was accepted, but I could not log in to the server. When I use my current password protected key I have no problem to log in and see the server welcome message and the command prompt.How can I diagnose what the problem is and how to solve it?
The text was updated successfully, but these errors were encountered: