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
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM