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 目錄下的文件.api

 

問題的關鍵在於要把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).ssh

解決方案:請看一下authorized_keys 文件是否有服務器本身的公鑰內容.免密登陸不但須要把本身的公鑰給其餘服務器,還要設置一份給本身的公鑰. .net

[root@hdp21 ~]# ssh-copy-id -i .ssh/id_rsa.pub root@hdp21
---------------------
做者:ai_dreamweaver
來源:CSDN
原文:https://blog.csdn.net/u013985879/article/details/84261311
版權聲明:本文爲博主原創文章,轉載請附上博文連接!code

相關文章
相關標籤/搜索