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

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

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第1张图片

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

解决步骤:

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

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

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

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第2张图片

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

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第3张图片

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

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第4张图片

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第5张图片

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第6张图片

推送一波:

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第7张图片

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

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第8张图片

跟着这个来:

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第9张图片

Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.(已解决)_第10张图片

成功了,哈哈哈哈。

在此记录一下。

参考链接:

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

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

你可能感兴趣的:(git)