Skip to content

1. 修改root密码

从网页命令行进入,使用命令修改root密码

bash
sudo passwd root

2. 修改sshd配置文件

切换到root用户

bash
su root

找到配置文件/etc/ssh/sshd_config 修改PermitRootLogin和PasswordAuthentication选项为yes

保存; 重启sshd服务

Made with ❤️