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:声明:
该博文只是为了规范自己的习惯,做问题记录,如有问题,请谅解。