The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't access root/ssh

Discussion in 'General Discussion' started by anishgiri, Jun 23, 2015.

  1. anishgiri

    anishgiri Registered

    Joined:
    Jun 18, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I can access root with whm. But with ssh(using putty), it tells access denied. Looking at whm, my account list is also gone. What should I do? I can login at ssh yesterday, but suddenly I can't login.
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Just to confirm... Are you saying that you can log in to WHM as root but not SSH?
     
  3. Arkaic

    Arkaic Member

    Joined:
    Jun 23, 2015
    Messages:
    22
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    You should probably submit a support ticket.
     
  4. rishivispute

    rishivispute Member

    Joined:
    May 23, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    pune
    cPanel Access Level:
    Root Administrator
    Twitter:
    Two Possibilities:
    First, when you log into WHM's web interface, go to Security >> MAnage Wheel Group Users. Make sure that root is in the wheel group.

    Second, check /etc/ssh/sshd_config by running cat /etc/ssh/sshd_config | grep PermitRootLogin - If it says yes then that's not your trouble. If it says no or it says yes but is commented out then... that's your trouble. Edit the text file with your editor of choice.
     
  5. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's going to be difficult without SSH access.

    If you do have access to WHM, go ahead and set up an account, assign it as a reseller and provide it full root permissions. You should then be able to log in to SSH with that to do the actions above.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Check to see if password authentication is disabled via:

    "WHM Home » Security Center » SSH Password Authorization Tweak"

    You may need to disable it if you are attempting to login with a password instead of a key. Otherwise, you can try resetting your SSH configuration from Web Host Manager with the following URL:

    Code:
    https://IP:2087/cpsess12345678/scripts2/doautofixer?autofix=safesshrestart
    You would replace "IP" with the server's IP address and the session number with what's displayed in your address bar. Note that this is simply a temporary instance of SSH so you can login and determine what's wrong with the standard SSH service. Then, use the following guide to update your SSH configuration:

    SSH Hardening Guide

    Thank you.
     
Loading...

Share This Page