-
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
"userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms" #16
Comments
Looks like this library still uses SHA-1 which is now deprecated Line 204 in e2df13c
|
Thanks for letting me know, I'll look into it |
Awesome, thanks! I bet that many tools will break because of the SHA1 deprecation :) |
yeah saw a bunch of similar issues in go projects are you able to test with your project? |
Hi @stakach I am still new to Crystal in general. How do I test with the code in your PR? Can I specify it somehow in the shards file? |
yeah, you can specify a branch in the shards yml ssh2.cr:
github: spider-gazelle/ssh2.cr
branch: upgrade-default-hash-alg |
Hi! I just tried and I still get For the time being to unblock users of my tool I am going to add |
Hi @stakach I am trying again. Just to make sure I am not missing anything, is it enough to add the branch to shards.yaml and run |
Yeah I think so, can have a look at the files and make sure the changes in the branch are present |
HI, sorry for the late reply. I tried but it didn't help unfortunately. What could be the problem? I am not familiar enough with how keys work etc |
@stakach I'm still getting this same issue |
Update: I was able to fix my problems by updating the SSH configuration on the server I was trying to SSH into with this crystal library:
Edit: sudo nano /etc/ssh/sshd_config Add the following line: PubkeyAcceptedAlgorithms +ssh-rsa Restart the ssh service: sudo service ssh restart |
Hi! I built a tool to create Kubernetes clusters in Hetzner Cloud (https://github.com/vitobotta/hetzner-k3s) and I use your library to interact with servers :)
Some users are having problems with some SSH keys, and I tracked it down to Ubuntu 22.04 refusing some keys with old crypto and I see these lines in /var/log/auth.log
The weird thing is that if I use the same SSH keys with the regular SSH client for example on Mac, I can SSH into the servers without any issue. But with the Crystal app using this library I cannot SSH into the servers because of that error.
Is there a workaround or does the library need to be updated somehow? Thanks!
The text was updated successfully, but these errors were encountered: