1、执行如下命令 ssh-keygen -t rsa 注:这里要按4次Enter键 2、产生公钥和私钥文件 ll ~/.ssh 3、拷贝公钥到免密登录的机器上 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ssh bigdata01