在开启hadoop时候报错:localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

此时 ssh localhost也会失败
原因是秘钥没有给自己,

运行ssh-copy-id -i ~/.ssh/id_rsa.pub root@localhost
即可解决。


posted @ 2022-12-09 00:54  #卧龙先生#  阅读(378)  评论(0编辑  收藏  举报