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

 

posted on 2018-10-08 20:56  风中追影  阅读(224)  评论(0编辑  收藏  举报

导航