一、vim /etc/ssh/sshd_config 保证下面两个配置是以下设置vim
#容许使用密码登陆 PasswordAuthentication yes #容许root认证登陆 PermitRootLogin yes
二、重启sshd运维
systemctl restart sshd
三、设置免密登陆ssh
ssh-kengen ssh-copy-id -i .ssh/id_rsa.pub root@172.0.0.3