Reputation: 12006
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
Upvotes: 38
Views: 56068
Reputation: 1725
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
Upvotes: 67
Reputation: 1629
GitHub improved security by dropping older, insecure key types on March 15, 2022.
Paste the text below in your terminal and substituting in your GitHub email address.
$ ssh-keygen -t ed25519 -C "[email protected]"
More Details Follow GitHub Docs : Generate new SSH key
Upvotes: 0
Reputation: 119
you can follow this steps To solve this problem :
in your terminal type this command ssh-keygen -t ecdsa -b 521 -C "[email protected]" you will be ask:
-"enter file in which To save the key" click enter
-enter passphrase (empty for no passphrase) click enter again
you will a message "your public key vas been saved in /user/machine/.ssh/id_ecdsa.pub(just an example ).
-type cat (where the file was save in my case /user/machine/.ssh/id_ecdsa.pub) To see your new generate ecdsa key .copy and go to github create a new ssh (dont forget to remove the old one ) and paste it then save
in your terminal again type ssh-add (directory of your new created id_ecdsa) to add it to the list. you will see identity added : directory of your key
hope this was helpful
Upvotes: 2
Reputation: 12006
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 (after deleting my old key first), updated my Eclipse SSH2 private key to point to id_ecdsa
. Now I can clone repositories.
Upvotes: 12
Reputation: 33
Small remark I had to first delete old key from my github account. I am not sure if it was just some coincidence.
Upvotes: 0