Skip to main content

Can't access root/ssh

Comments

5 comments

  • LostNerd
    Just to confirm... Are you saying that you can log in to WHM as root but not SSH?
    0
  • Arkaic
    You should probably submit a support ticket.
    0
  • rishivispute
    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.
    0
  • LostNerd
    cat /etc/ssh/sshd_config | grep PermitRootLogin

    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.
    0
  • cPanelMichael
    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:
    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.
    0

Please sign in to leave a comment.