2021年4月21日 星期三

[github, ssh, key] How to resolve the issue "Error: Key already in use" when you deploy an ssh key to a repository in GitHub

How to resolve the issue "Error: Key already in use" when you deploy an ssh key to a repository in GitHub 

Jing, mqjing@gmail.com

 

Resolved procedure

Step 1: Check which repository used the key

ssh -T -ai ~/.ssh/id_rsa git@github.com



Step 2: Remove the key from the repository

[github page] -> Your project:[Settings] -> [Deploy keys]



Reference