一、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