Ubuntu Server 远程使用ROOT登录SSH

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

sudo passwd root

输入新密码

之后修改sshd文件

vim /etc/ssh/sshd

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

PermitRootLogin yes

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

sanradar
sanradar
文章: 104

41 评论

  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.

  6. Having read this I thought it was really informative. I appreciate you taking the time and energy to put this content together. I once again find myself personally spending way too much time both reading and posting comments. But so what, it was still worthwhile!

  7. Nice post. I learn something totally new and challenging on sites I stumbleupon every day. It’s always interesting to read through content from other writers and use something from their sites.

  8. The next time I read a blog, Hopefully it doesn’t fail me as much as this particular one. After all, I know it was my choice to read, nonetheless I truly thought you’d have something helpful to say. All I hear is a bunch of crying about something that you could possibly fix if you were not too busy looking for attention.

  9. I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and entertaining, and without a doubt, you’ve hit the nail on the head. The problem is an issue that too few people are speaking intelligently about. I am very happy that I found this in my search for something regarding this.

  10. Howdy, I do believe your web site could possibly be having web browser compatibility problems. Whenever I take a look at your blog in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I just wanted to give you a quick heads up! Apart from that, fantastic blog.

  11. A motivating discussion is definitely worth comment. I believe that you ought to write more on this subject, it might not be a taboo matter but generally people don’t discuss such topics. To the next! Cheers.

  12. Having read this I believed it was extremely informative. I appreciate you spending some time and effort to put this informative article together. I once again find myself spending a significant amount of time both reading and posting comments. But so what, it was still worth it.

  13. I’m impressed, I have to admit. Rarely do I come across a blog that’s both educative and amusing, and let me tell you, you’ve hit the nail on the head. The issue is something too few men and women are speaking intelligently about. Now i’m very happy that I stumbled across this during my search for something concerning this.

  14. I was more than happy to discover this great site. I want to to thank you for ones time due to this wonderful read!! I definitely savored every bit of it and i also have you saved to fav to look at new things on your website.

  15. I’m impressed, I have to admit. Seldom do I encounter a blog that’s equally educative and amusing, and without a doubt, you have hit the nail on the head. The issue is something not enough folks are speaking intelligently about. I’m very happy that I came across this in my search for something regarding this.

  16. After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive four emails with the exact same comment. There has to be a way you are able to remove me from that service? Thanks.

  17. After going over a number of the blog articles on your site, I honestly appreciate your technique of writing a blog. I saved it to my bookmark website list and will be checking back soon. Please visit my website as well and let me know how you feel.

  18. I’d like to thank you for the efforts you have put in writing this blog. I really hope to view the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has motivated me to get my very own site now 😉

留下评论

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