Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host

刚开始使用github的时候不是很了解,新手一般的都会遇到这个问题Permanently added the RSA host key for IP address ‘192.30.252.128’ to the list of known hosts。其实这只是一个警告无伤大雅,继续用就是了,但是看着就是不爽,然后就想办法把他KO,一招致命。

出现的问题如下图:
Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host_第1张图片

上述那条警告的大概意思就是:警告:为IP地址192.30.252.128的主机(RSA连接的)持久添加到hosts文件中,那就来添加吧!

解决办法:

  vim /etc/hosts

添加一行:192.30.252.128  github.com

效果如图:

  Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host_第2张图片

这样就可以了,测试如图:
Github遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known host_第3张图片

此时那个警告就没有了。

如有转载请请务必保留此出处:http://www.cnblogs.com/xiangyangzhu/

你可能感兴趣的:(学习——常见问题,github,permanenty,解决方案,gitbash,windows)