Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)

新换的电脑,想把远程库关联到本机,然后又进行了一波操作,在推送的时候一不小心就报错了:

它的意思是没有在你github上添加一个公钥

解决步骤:

1 、可以用 ssh -T [email protected]去测试一下

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

2、重新生成sshKeygen 这里需要输入你的git账号

3. cat 一下  把生成的key 复制下来

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

推送一波:

发现又出错了,仔细一看,本地没有update到最新版本的项目

跟着这个来:

成功了,哈哈哈哈。

在此记录一下。

参考链接:

https://www.cnblogs.com/qcwblog/p/5709720.html

https://blog.csdn.net/u013120247/article/details/53263169

猜你喜欢

转载自blog.csdn.net/qq_41999617/article/details/83691324