Agent admitted failure to sign using the key解决

最近在搭hadoop集群遇到问题,需要用到免密码登录,可是遇到问题,提示Agent admitted failure to sign using the key,百度一下说是需要把私钥加入,通过ssh-add命令试试,可以成功。下面是本人遇到问题的操作过程,基于centOS7系统的,注意:本人是在home目录下操作的,根据自己ssh存在位置而定

[hadoop@slave1 .ssh]$ ssh master
The authenticity of host 'master (192.168.238.129)' can't be established.
ECDSA key fingerprint is 4f:e2:e4:ca:9d:db:46:e7:72:a1:83:3e:09:27:6a:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'master,192.168.238.129' (ECDSA) to the list of known hosts.
Agent admitted failure to sign using the key.
hadoop@master's password: 
Last login: Wed Jun 20 18:30:25 2018 from master
[hadoop@master ~]$ exit
登出
Connection to master closed.
[hadoop@slave1 .ssh]$ ssh master
Agent admitted failure to sign using the key.
hadoop@master's password: 
^C
[hadoop@slave1 .ssh]$ cd ..
[hadoop@slave1 ~]$ ssh-add
Identity added: /home/hadoop/.ssh/id_rsa (/home/hadoop/.ssh/id_rsa)
[hadoop@slave1 ~]$ ssh master
Last failed login: Wed Jun 20 18:32:17 CST 2018 from slave1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jun 20 18:31:15 2018 from slave1
[hadoop@master ~]$ 
[hadoop@master ~]$ 

猜你喜欢

转载自blog.csdn.net/u014204541/article/details/80751180
今日推荐