I created a public key in Git using ssh-keygen
which was successfully created as .ssh/id_rsa.pub
.
I then uploaded it to GitHub in my SSH Keys, and "Authorized" its SSO feature. Everything is uploaded now.
When cloning a repository in Eclipse, I get the following message
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 ECDSA
encryption and add it to Github.
ssh-keygen -t ecdsa -b 521 -C "[email protected]"
Original answer with details can be found here