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
Paramiko doesn't support rsa-sha2-512 and rsa-sha2-256. #1734
Comments
Thanks, just waiting for one of the to be merged then. |
Hi there, |
There's technically only one RSA key. The older The primary reason to support these, is to ensure we can complete the authentication without using the insecure SHA1 algorithm (which I disable on my servers). |
From https://superuser.com/questions/1444319/how-to-check-ssh-key-version-locally, my key is an RSAv2. |
I think you misread that. It's talking about an SSHv2 key. Without reading further, my guess is that is a different format for storing the key, it doesn't have any bearing on the type of a key (i.e. it doesn't affect whether it's RSA or not). |
You're right, my mistake. I meant to write "SHA2" or "SHA1". |
When trying to connect to my server with Paramiko, I just get
Authentication failed.
.Looking at the server logs, I see:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedKeyTypes [preauth]
The connection works fine using openssh with the same key, so it looks like Paramiko doesn't use rsa-sha2-512/256.
The text was updated successfully, but these errors were encountered: