SSH生成id_rsa, id_rsa.pub后,连接服务器却报:

Agent admitted failure to sign using the key

错误。

 

解决方法:

在当前用户下执行命令:

ssh-add

即可解决。


 

 

 

 

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

出现的问题如下图:

初始化git linux上传文件常见问题
    





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

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

解决办法:

   vim /etc/hosts

添加一行:192.30.252.128  github.com

效果如图:

  初始化git linux上传文件常见问题
    





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

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

初始化git linux上传文件常见问题
    





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

此时那个警告就没有了。


 

相关文章: