Agent admitted failure to sign using the key解決

Tlimited發表於2018-06-20

最近在搭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 ~]$ 

相關文章