k8s安装 ssh 免密
1 ls 2 systemctl disable firewalld 3 sudo vi /etc/fstab 4 top 5 sudo vi ~/.ssh/config 6 ssh aliyun2 7 scp root@aliyun2:~/.ssh/id_rsa.pub /home 8 cat /home/id_rsa.pub >> ~/.ssh/authorized_keys 9 ssh aliyun2 10 find / -name sshd_conf% 11 cd /etc/ssh/ 12 ls 13 cp sshd_config sshd_config.bak 14 vim sshd_config 15 service sshd restart 16 ssh aliyun2 17 vim sshd_config 18 service sshd restart 19 ssh aliyun2 20 systemctl restart ssh 21 ssh aliyun2 22 history 23 sudo vi ~/.ssh/config 24 ssh aliyun3 25 scp root@aliyun3:~/.ssh/id_rsa.pub /home/aliyun3.id_rsa.pub 26 cat /home/aliyun3.id_rsa.pub >> ~/.ssh