linux 配置SSH无密码登录
1. 检查SSH是否安装。
yum install ssh
yum install rsync
rpm -qa|grep openssh
rpm -qa|grep rsync
2. 生成ssh公钥(以hadoop用户执行)
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop01@master
ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop01@slave1
ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop01@slave2
每台机器上都执行
3. 验证安装
ssh master
ssh slave1