1、生成秘钥
ssh-keygen -t rsa -f /root/.ssh/id_rsa -N ''
2、删除
cd /root/.ssh rm -rf known_hostscp id_rsa authorized_keys
3、拷贝到所有终端
for i in centos{1..6} #终端名字 do scp -r /root/.ssh $i:/root done
4、输入密码