Ambari Confirm Hosts Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

明明没有错,为什么一直Faild.(PS:如图所示,假装是个Faild)

这一步困扰了一天多的时间,网上有说设置.shh权限的,有说修改sshd_config 文件的...通通不适用我的问题.

先看第一个问题:

==========================
Creating target directory...
==========================

Command start time 2018-11-19 00:35:59

Warning: Permanently added 'hdp21,192.168.163.21' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
SSH command execution finished
host=hdp21, exitcode=255
Command end time 2018-11-19 00:35:59

ERROR: Bootstrap of host hdp21 fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Warning: Permanently added 'hdp21,192.168.163.21' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

STDOUT: 
Warning: Permanently added 'hdp21,192.168.163.21' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

解决 Permanently added 'hdp21,192.168.163.21' (ECDSA) to the list of known hosts. 其实仔细看问题很好解决,know hosts 是不是很眼熟,不错,就是.ssh 目录下的文件.

问题的关键在于要把hdp21 那条数据放在第一行,(PS原先hdp21 的数据在末尾一行)

第二个问题:

==========================
Creating target directory...
==========================

Command start time 2018-11-19 21:14:19

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
SSH command execution finished
host=hdp21, exitcode=255
Command end time 2018-11-19 21:14:19

ERROR: Bootstrap of host hdp21 fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

STDOUT: 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

问题其实已经很明显了 ,Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

解决方案:请看一下authorized_keys 文件是否有服务器自己的公钥内容.免密登录不但需要把自己的公钥给其他服务器,还要设置一份给自己的公钥. 

[root@hdp21 ~]# ssh-copy-id -i .ssh/id_rsa.pub root@hdp21

 

大功告成.希望为这个问题困扰良久的你带来快乐!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

aimmon

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值