ubuntu使用git的时:Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the lis...

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:声明:

  该博文只是为了规范自己的习惯,做问题记录,如有问题,请谅解。

转载于:https://www.cnblogs.com/yun6853992/p/9348540.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值