Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rename a GitHub SSH key?

Tags:

github

ssh

The following question concerns the SSH and GPG keys section of GitHub's Personal settings area (see screen cap below).

The SSH and GPG keys section of the Personal settings area

Once a new SSH key has been added, is it possible to rename it (i.e. to give it a new Title) either explicitly or by deleting the existing key and then adding a new one with a different Title but with the same Key?

Please answer the above in two cases: (1) the key has never been used to access a repository of the account, (2) the key has been used to access a repository of the account.


Background Today I deleted a SSH entry and then tried to add it again with a different title, but GitHub refused to add it, emitting the following message: Key is already in use.

like image 511
Evan Aad Avatar asked Oct 25 '25 21:10

Evan Aad


1 Answers

It is not possible to rename keys on GitHub. You can only delete them.

enter image description here

But it is possible to delete them and add them with a new name. It doesn't matter for this whether or not it has been used already.

Be careful: When you delete the key, it is not possible to restore it. To add it again, you need to have access to the public key.

like image 95
jdno Avatar answered Oct 27 '25 15:10

jdno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!