代码改变世界

关于ssh报错:Agent admitted failure to sign using the key.

2016-02-26 21:09  dream_er  阅读(240)  评论(0编辑  收藏  举报

看了书上使用ssh时可以免密码来进行远程连接,详细见:http://blog.csdn.net/it_dream_er/article/details/50752326

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

Agent admitted failure to sign using the key.错误。

解决方法:

在当前用户下执行命令:

ssh-add

即可解决。