分别有Hadoop102,Hadoop103,Hadoop104三台Centos7的操作系统
Hadoop102:
[zhenghui@hadoop102 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/zhenghui/.ssh/id_rsa):
Created directory '/home/zhenghui/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/zhenghui/.ssh/id_rsa.
Your public key has been saved