Ubuntu Server 20.04开启root登录ssh的方式

发布于 作者 量尺寸留下评论

sudo passwd root 设置root密码

sudo nano /etc/ssh/sshd_config

PermitRootLogin yes
sudo systemctl restart sshd 重启sshd服务

然后就可以使用root登录了

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注