-
生成公私钥流程,看到拷贝
公钥
成功就行,如果本机已经有公私钥
,只需要直接看拷贝公钥
即可。 -
点击
头像
,找到设置(settings)
-
找到
SSH
配置,添加SSH Keys
-
校验是否成功
$ ssh -T git@github.com
The authenticity of host 'github.com (140.82.112.4)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names # 询问是否确定连接,输入 yes Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. # 提示连接成功 Hi dengzemiao! You've successfully authenticated, but GitHub does not provide shell access.
-
注意:之后在
clone
仓库的时候要使用ssh
的url
,而不是https
!
GitHub 配置 SSH 密钥(详细流程)
于 2022-07-05 11:52:50 首次发布