本文最后更新于 789 天前,其中的信息可能已经有所发展或是发生改变,纠正错误请发送邮件到<baigeixiangcai@gmail.com>。
修改密码
sudo passwd root设置完成后,切换root用户
su root编辑sshd_config文件
vim /etc/ssh/sshd_config找到下面两个选项,然后修改为yes
PasswordAuthentication yes
PermitRootLogin yes保存修改后,重启ssh服务
service sshd restartLast Updated on 2023 18 10 月

