第一步,生成自己公钥, 私钥 1: ssh-keygen -t rsa 2: 3: root@yjlml:~# ssh-keygen -t rsa 4: Generating public/private rsa key pair. 5: Enter file in which to save the key (/root/.ssh/id_rsa): 6: Enter passphrase (empty for no passphrase): 7: Enter same passphrase
环境说明 假设我们有三台机器分别为bigdata111,bigdata112,bigdata113,三台机器均为centos 7系统. 配置SSH免密登录 (1)利用Xshell的发送键输入到所有会话功能,在三台机器生成秘钥 [root@bigdata111 hadoop-2.8.4]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa