Ubuntu Server 远程使用ROOT登录SSH

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

sudo passwd root

输入新密码

之后修改sshd文件

vim /etc/ssh/sshd

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

PermitRootLogin yes

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

sanradar
sanradar
文章: 104

16 评论

  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

  2. Hi, I do believe this is an excellent website. I stumbledupon it 😉 I am going to revisit yet again since I saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to guide others.

  3. Greetings, I think your website may be having browser compatibility problems. When I take a look at your site in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I simply wanted to provide you with a quick heads up! Other than that, excellent blog.

  4. After I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve 4 emails with the exact same comment. Perhaps there is an easy method you can remove me from that service? Thanks.

  5. After going over a number of the blog articles on your blog, I truly like your technique of blogging. I book marked it to my bookmark site list and will be checking back in the near future. Please check out my website as well and let me know your opinion.

留下评论

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