Hadoop集群搭建无密码登录

两台服务器,hadoop-001和hadoop-003

1.讲hadoop-001的公钥远程拷贝到hadoop-003

scp id_rsa.pub hadoop-003:/home/hadoop


 

2. 切换到hadoop-003,追加hadoop-001的公钥到authorized_keys中

cat ../id_rsa.pub >> ./authorized_keys


 

3. 从hadoop-001登录到hadoop-003(无需密码)

ssh hadoop-003


 

 

 

 

 

你可能感兴趣的:(Hadoop集群搭建无密码登录)