hadoop生态搭建(3节点)-02.ssh配置
# ssh免密码登录
# ==================================================================node1
# 一路狂按回车,最终生成(id_rsa,id_rsa.pub两个文件)
# root用户无需修改,其他用户需修改权限
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub node1
# ==================================================================node2
# 一路狂按回车,最终生成(id_rsa,id_rsa.pub两个文件)
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub node1
# ==================================================================node3
# 一路狂按回车,最终生成(id_rsa,id_rsa.pub两个文件)
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub node1
# ==================================================================node1
scp ~/.ssh/authorized_keys node2:~/.ssh/ scp ~/.ssh/authorized_keys node3:~/.ssh/
# ==================================================================node1 node2 node3
ssh localhost ssh node1 exit ssh node2 exit ssh node3 exit shutdown -h now
# 快照 ssh