1. 程式人生 > >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.(已解決)

新換的電腦,想把遠端庫關聯到本機,然後又進行了一波操作,在推送的時候一不小心就報錯了:

它的意思是沒有在你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