Ubuntu Server 远程使用ROOT登录SSH

ubuntu server 新系统安装好之后先使用安装时创建的用户登录,然后直接设置root密码

sudo passwd root

输入新密码

之后修改sshd文件

vim /etc/ssh/sshd

将端口后前面的注释去掉 继续输入修改下面的代码

PermitRootLogin yes

然后保存重启系统,就可以使用root远程登录ssh了。

sanradar
sanradar
文章: 97

4 评论

  1. hey there and thank you for your information – I’ve definitely picked
    up anything new from right here. I did however expertise a few technical points using this web site, since I experienced to reload the site a lot of times previous
    to I could get it to load correctly. I had been wondering if your hosting is OK?
    Not that I am complaining, but slow loading instances times will often affect your placement in google and can damage your quality score if ads
    and marketing with Adwords. Anyway I’m adding this RSS to my e-mail
    and can look out for much more of your respective exciting content.
    Ensure that you update this again very soon..

    Escape rooms hub

留下评论

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