1.切换到root用户 sudo -i
2.cd /etc/ssh
3. vim sshd_config,需要修改文件中的root用户登录属性
4.改成PermitRootLogin yes
5.改成PasswordAuthentication yes
6.重启ssh服务:service ssh restart
1.切换到root用户 sudo -i
2.cd /etc/ssh
3. vim sshd_config,需要修改文件中的root用户登录属性
4.改成PermitRootLogin yes
5.改成PasswordAuthentication yes
6.重启ssh服务:service ssh restart