Ambari Confirm Hosts Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
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
---------------------
作者:ai_dreamweaver
来源:CSDN
原文:https://blog.csdn.net/u013985879/article/details/84261311
版权声明:本文为博主原创文章,转载请附上博文链接!
作者:KeerDi —— 北方的后生
出处:http://www.cnblogs.com/keerdi/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。