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 ~]$ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值