github添加公钥,并使用SSH

来源:互联网 发布:java代码打包 编辑:程序博客网 时间:2024/05/19 20:45

Warning: Permanently added the RSA host key for IP address ‘xxx.xxx.xxx.xxx’ to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure y

这个应该是很多github新手经常出错的问题,这个就是没有在你github上添加一个公钥。

下面就直接说步骤:

1 可以用 ssh -T git@github.com去测试一下

图上可以明显看出缺少了公钥

2 直接上图

3. cat 一下  把出现的key 复制下来

4 .在github上添加刚刚生成的公钥

/div>
原创粉丝点击