1. 程式人生 > >Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hos

Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hos

工作日誌記錄:

當使用git remote命令關聯遠端程式碼倉庫的時候,新手有可能會碰到這樣的錯誤,這種錯誤解決的辦法是在git命令視窗輸入以下命令列獲取你的rsakey:

ssh-keygen -t rsa -C "你的程式碼託管伺服器註冊的使用者名稱"

然後如果不修改包名(上級資料夾)以及rsakey檔案的名字的話可以一直enter,末尾會提示你創建於哪個檔案。

key檔案建立之後,使用文字編輯器開啟id_rsa.pub.  這個檔案,裡面就是你需要在你的程式碼託管伺服器上新增的sshkey了,新增完成之後就OK了。