Hadoop伪分布式集群在启动时遇到Permission denied (publickey,gssapi-keyex,gssapi-with-mic
程序员文章站
2022-05-29 17:10:01
...
1.修改sshd_config文件
vi /etc/ssh/sshd_config //开启以下内容
HostKey /etc/ssh/ssh_host_rsa_key
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
重启sshd服务:systemctl restart sshd
2.创建**
ssh-****** -t rsa
cat id_rsa.pub >> authorized_keys
3.修改权限
chown -R hadoop:hadoop /home/hadoop
chmod 700 /home/hadoop
chmod 700 /home/hadoop/.ssh
chmod 644 /home/hadoop/.ssh/authorized_keys //公钥文件的权限
chmod 600 /home/hadoop/.ssh/id_rsa //私钥文件的权限
上一篇: node安装和淘宝镜像cnpm安装
下一篇: mysql 多表连接查询技巧