刚开始使用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 hosts问题解决-LMLPHP

上述那条警告的大概意思就是:警告:为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 hosts问题解决-LMLPHP

这样就可以了,测试如图:

github 遇到Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts问题解决-LMLPHP

此时那个警告就没有了。

05-08 15:22