ubuntu使用git的時:Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.


1:問題現象:

hlp@hlp:~/code/github_code/catch_imooc1$ git push origin master
Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.
Everything up-to-dat

描述:上述那條警告的大概意思就是:警告:為IP地址'13.250.177.223'的主機(RSA連接的)持久添加到hosts文件中,那就來添加吧!

2:修改方案:

在本地/etc/hosts 文件中添加: 13.250.177.223    github.com

注意該文件的寫權限:
hlp@hlp:/etc$ ll hosts -rw-r--r-- 1 root root 230 7月 16 22:54 hosts hlp@hlp:/etc$ sudo vim hosts [sudo] password for hlp: hlp@hlp:/etc$ cat hosts 127.0.0.1 localhost 127.0.1.1 hlp-Lenovo-G405 13.250.177.223 github.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters

測試驗證:
hlp@hlp:~/code/github_code/git_mytest$ git pull
Already up to date

 3:參考博文:

  https://blog.csdn.net/zhoucheng05_13/article/details/52831703

4:聲明:

  該博文只是為了規范自己的習慣,做問題記錄,如有問題,請諒解。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM