解决localhost.localdomain: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

这篇博客内讲的算是比较详细适用的https://blog.csdn.net/situliang/article/details/72904449

一、情况
在虚拟机搭建Hadoop环境时,出现localhost.localdomain: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)问题,这个问题是由于即使是本机使用SSH服务也是需要对自己进行公私钥授权的,所以在本机通过ssh-keygen创建好公私钥,然后将公钥复制到公私钥的认证文件中就可以了

ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

你可能感兴趣的:(解决localhost.localdomain: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password))