Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Github 帐户上错误地通过 SSH 密钥删除了,现在我不知道如何添加该密钥或生成新密钥。
谷歌...
生成 GitHub SSH 密钥
ssh-keygen -t rsa -C "your_email@youremail.com"
这将在您的 ~/.ssh/ 目录中生成新的id_rsa和id_rsa.pub密钥。
id_rsa
id_rsa.pub
要将这个新创建的密钥上传到 GitHub,请转到:
cat ~/.ssh/id_rsa.pub