1、设置root密码
sudo passwd root
2、设置 ssh
vim /etc/ssh/sshd_config
PermitRootLogin yes PasswordAuthentication yes systemctl restart sshd
本文详细介绍如何在Linux系统中配置SSH服务,包括设置root密码和调整SSH配置文件以允许root登录和密码验证,最后重启SSH服务确保设置生效。
1、设置root密码
sudo passwd root
2、设置 ssh
vim /etc/ssh/sshd_config
PermitRootLogin yes PasswordAuthentication yes systemctl restart sshd
1548

被折叠的 条评论
为什么被折叠?