Home > Back-end >  Eclipse/Git: "You're using an RSA key with SHA-1, which is no longer allowed. Please use a
Eclipse/Git: "You're using an RSA key with SHA-1, which is no longer allowed. Please use a

Time:03-17

I created a public key in Git using ssh-keygen which was successfully created as .ssh/id_rsa.pub.

enter image description here

I then uploaded it to GitHub in my SSH Keys, and "Authorized" its SSO feature. Everything is uploaded now.

enter image description here

When cloning a repository in Eclipse, I get the following message enter image description here

CodePudding user response:

I had to generate an ECDSA key, not an RSA key. Not sure why, but none of the RSA options worked for me, including the default.

ssh-keygen -t ecdsa -b 256 -m PEM

I got this from https://stackoverflow.com/a/71502531/1005607

Then I uploaded it to GitHub, updated my Eclipse SSH2 private key to point to id_ecdsa. Now I can clone repositories.

CodePudding user response:

According to Github security blog RSA keys with SHA-1 are no longer accepted.

Use the following command to create new SSH key with ECDSAencryption and add it to Github.

ssh-keygen -t ecdsa -b 521 -C "[email protected]"

Original answer with details can be found here

  • Related