修改 root 密码
1
2
sudo -i  #切换到root
passwd #修改密码
修改SSH配置文件/etc/ssh/sshd_config
1
2
3
4
5
vi /etc/ssh/sshd_config

PermitRootLogin yes
PasswordAuthentication yes

重启ssh服务
1
service ssh restart