linux ssh 免密登录

三个节点 hadoop102,hadoop103,hadoop104

在102节点执行如下命令

ssh-keygen
ssh-copy-id -i /root/.ssh/id_rsa.pub root@hadoop102
ssh-copy-id -i /root/.ssh/id_rsa.pub root@hadoop103
ssh-copy-id -i /root/.ssh/id_rsa.pub root@hadoop104
#/root/.ssh/id_rsa.pub 密钥文件的地址
#hadoop102 在/etc/hosts配置域名映射

  

posted @ 2022-09-08 01:34  coder_xds  阅读(17)  评论(0编辑  收藏  举报