简单粗暴:重新生成SSH key再关联至GitHub

问题提示

Key is already in use

官方文档
Error: Key already in use This error occurs when you try to add a
key that’s already been added to another account or repository

该key被其他用户使用或被其他仓库使用

官方文档
Once a key has been attached to one repository as a deploy key,
it cannot be used on another repository.

一个键作为部署的ssh key使用只能绑定一个仓库。

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

Connect to GitHub using a specific ssh key

Hi username! You’ve successfully authenticated, but GitHub does not
provide shell access.

解决:
用户 Setting -SSH and GPG keys -中将电脑上已有的key配置到了SSH keys
finally:
git push -u origin master

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐