pzg's blog

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

网上很多资料都是介绍桌面版的,对server版不管用,其实server版开放root登录要简单的多,只需要三步:

1、sudo passwd root 设置root密码

2、sudo vi /etc/ssh/sshd_config 修改

PermitRootLogin without-password

PermitRootLogin yes

3、sudo systemctl restart sshd 重启sshd服务


然后就可以使用root登录了

发表回复

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