Home > Uncategorized > Enable root user password login on EC2 Ubuntu

Enable root user password login on EC2 Ubuntu

March 22nd, 2012 Leave a comment Go to comments

Even though it’s not recommended, sometimes it’s easier to just log in as root. Here’s how to enable the root user login on your Ubuntu based EC2 instance:

 

Create a password for the root user:

     sudo passwd root

Edit your SSHd config to allow password based logins:

     sudo nano -w /etc/ssh/sshd_config

Add the following line to /etc/ssh/sshd_config:

     PasswordAuthentication yes

Copy your authorized SSH keys if you want to log in via keys as well:

     sudo mkdir /root/.ssh
     sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/

Reload your SSHd config:

     sudo reload ssh

Now you can login as root!

Categories: Uncategorized Tags: , , , , ,
  1. March 11th, 2014 at 06:38 | #1

    At this moment I am going to do my breakfast, afterward having my breakfast coming
    over again to read additional news.

  2. June 15th, 2014 at 01:35 | #2

    Hi there Dear, are you in fact visiting this web site daily, if so then you will absolutely get pleasant experience.

  3. June 19th, 2014 at 09:45 | #3

    It is appropriate time to make some plans for the
    future and it is time to be happy. I have read this post and
    if I could I want to suggest you few interesting things or suggestions.
    Maybe you can write next articles referring to this article.
    I desire to read more things about it!

  4. June 23rd, 2014 at 00:38 | #4

    Hello i am kavin, its my first occasion to commenting anyplace,
    when i read this piece of writing i thought i could also create comment due to
    this good paragraph.

  5. June 27th, 2014 at 04:52 | #5

    You ought to be a part of a contest for one of the greatest blogs on thhe web.
    I’m going to highly recommend this site!

  6. June 28th, 2014 at 22:58 | #6

    Please let me know if you’re looking for a article
    author for your weblog. You have some really great articles
    and I think I would be a good asset. If you ever want to take some of the load off,
    I’d absolutely love to write some content for your blog in excange for a link back to mine.
    Please send me an e-mail if interested. Thank you!

  7. June 30th, 2014 at 13:36 | #7

    Heya this is kinda of off topic but I was wondering if blogs use WYSIWYG editors
    or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I
    wanted to get advice from someone with experience.
    Any help would be greatly appreciated!

  8. July 3rd, 2014 at 13:58 | #8

    Hi, I want to subscribe for this webpage to take latest updates, therefore
    where can i do it please help.

  9. July 7th, 2014 at 02:27 | #9

    This is a topic that’s near to my heart… Best wishes!
    Where are your contact details though?

  10. July 13th, 2014 at 06:44 | #10

    Hello there! I just would like to offer you a big thumbs up
    for your excellent information you have got here on this post.
    I will be coming back to your blog for more soon.

  11. July 15th, 2014 at 03:02 | #11

    Hello! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly? My weblog looks weird when viewing from
    my iphone4. I’m trying to find a theme or plugin that might be able to correct this problem.

    If you have any suggestions, please share. Thank
    you!

  12. July 23rd, 2014 at 19:09 | #12

    I’m very pleased to discover this page. I need to
    to thank you for ones time just for this wonderful read!!
    I definitely loved every little bit of it and i also have you book-marked to
    ssee new information on your web site.

  13. August 20th, 2014 at 23:46 | #13

    I constantly spent my half an hour to read this website’s
    articles all the time along with a cup of coffee.

  14. September 12th, 2014 at 15:08 | #14

    Thanks for finally writing about >Enable root user password login on EC2 Ubuntu |
    vNate <Liked it!

  15. September 15th, 2014 at 20:02 | #15

    Excellent post. I was checking continuously this weblog and I am
    inspired! Extremely helpful info particularly the remaining phase 🙂 I deal
    with such information a lot. I was seeking this certain information for a very lengthy
    time. Thanks and best of luck.

  16. October 3rd, 2014 at 14:43 | #16

    Usefսl info. Lucky mе I discovered ʏour site ƅy
    accident, and I am stunned why thiѕ accident didn’t happened earlier!
    І bookmarked it.

  1. No trackbacks yet.