SSH root acess denied - Ubuntu - Help
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 9 of 9
  1. #1

    Join Date
    Dec 2009
    Location
    Cal-i-for-ni-a
    Posts
    266

    Default SSH root acess denied - Ubuntu - Help

    Hey all,

    So I got my box setup finally, and then the system started slowing down extremely and was timing out alot, funny it never did when it was setup as a seedbox for me, but now I am getting access denied for root although the sudo user can login. I can su to root but can't login via putty, I am getting denied. I don't understand what is going on, I need some help here. I tried reading some articles via ubuntu forums, and allowed root as a user, and changed the password, still with no success. Can anyone help out?

    edit: Just realized that when I log in as sudo user via putty, then start a putty window, and login as root, get denied, the sudo session time's out... still really confused...

    Last edited by superbad09; February 15th, 2010 at 07:21 PM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Aug 2009
    Posts
    336

    Default


    Perhaps you disallow root on /etc/ssh/sshd_config file ? Could you pastebin it ?
    My big THANKS to: Pascualito, goover, konVILEeuted, smtsh, Knievel and The-Deh

  4. #3

    Join Date
    Dec 2009
    Location
    Cal-i-for-ni-a
    Posts
    266

    Default

    Thank you for the response. Sure, added to pastebin. After I read your post I edited sshd, and added the AllowUsers root in addition to AllowUsers (sudouser), but that didn't work, so I removed it, then pasted it. Edited to show that atleast that much was attempted. I orginally had the line AllowUsers root, (sudouser), but that also didn't work. So how I am confused, it's more of a trial and error attempt for me. Appreciate the help! :D

    duh! pastebin link http://pastebin.com/m3ca9a10e
    Last edited by superbad09; February 15th, 2010 at 10:01 PM. Reason: linked

  5. #4

    Join Date
    May 2009
    Posts
    374

    Default

    In Ubuntu this is the default configuration/working by design. You should never log in as root. A good practice on any linux system. You should always log in as a normal user and then elevate your permissions as needed.

    Log in as you and then su or sudo -s to become root once you are in.

    If you still want to log directly into the system as root over SSH line 26 is a problem in your sshd config.

    PermitRootLogin no needs to read PermitRootLogin yes

    Then restart sshd.

    I believe on Ubuntu systems you have to "enable" the root account by setting a password specifically for the root account.

    sudo passwd root and type in a new password.

    Q

  6. #5

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    qaw is absolutely correct. U need to edit this line in your sshd config file to allow root login. Change "PermitRootLogin no > PermitRootLogin yes" then restart ssh > " /etc/init.d/ssh restart or /etc/init.d/sshd restart".

    Even if u set "AllowUsers" it will have no affect if the above line is set to no. Also, like qaw said u should never log in as root user. Just login with sudo user and switch to root if u need to. Also in your "AllowUsers" line u need to put it like this or it will also not take effect > "AllowUsers root miked". U have it set with two lines, just use 1 line there after u pernit root login.

    If u got your server from OVH they usually give u root for Ubuntu so there's no need to enable the account, but if u didnt and depending what server provider u have, u may have to do what qaw said again, lol and enable root account. But u would of already done that if u got this far anyway.
    Last edited by MikeD; February 16th, 2010 at 05:33 AM.

  7. #6

    Join Date
    Dec 2009
    Location
    Cal-i-for-ni-a
    Posts
    266

    Default

    Thanks guys. I guess setting up the server and reading so much about it got my mind all messed up yesterday. Got some sleep and it's much clearer now. Making sense. :D It is a OVH server.

  8. #7

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    Your welcome. I remember u posting saying u followed my tutorial yesterday. If this is the case then the part i have about "securing server & ssh" makes u disable ssh root login for security. If u followed that part then thats what happened to u. U disabled root login, but probably didnt know that. Anyway at least u know what to do to fix that now. Glad u got it resolved.

  9. #8

    Join Date
    Dec 2009
    Location
    Cal-i-for-ni-a
    Posts
    266

    Default

    Quote Originally Posted by MikeD View Post
    Your welcome. I remember u posting saying u followed my tutorial yesterday. If this is the case then the part i have about "securing server & ssh" makes u disable ssh root login for security. If u followed that part then thats what happened to u. U disabled root login, but probably didnt know that. Anyway at least u know what to do to fix that now. Glad u got it resolved.

    Yeah ... I must have forgot to remember. I'm going back through it and understanding it better. My nickname is Ten Second Tom. :laugh:

  10. #9

    Join Date
    Dec 2009
    Location
    Cal-i-for-ni-a
    Posts
    266

    Default

    Resolved. Thanks to MikeD.

    Thread closed.

Similar Threads

  1. No SSH or Webmin HELP!!
    By SteadySeed in forum Help
    Replies: 6
    Last Post: November 17th, 2011, 11:58 PM
  2. Need help with Ubuntu Server
    By Rooster in forum Help
    Replies: 32
    Last Post: November 7th, 2011, 03:23 PM
  3. Ubuntu: Ditching the GUI - Help!
    By overdigested in forum Help
    Replies: 5
    Last Post: February 2nd, 2011, 12:33 PM
  4. Ubuntu Network Proxy help
    By zartigas in forum Help
    Replies: 4
    Last Post: July 19th, 2010, 07:52 PM
  5. Waffles help
    By FoxHound in forum BitTorrent Discussion
    Replies: 6
    Last Post: December 19th, 2007, 10:02 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •