Can't access root/ssh
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.
-
Just to confirm... Are you saying that you can log in to WHM as root but not SSH? 0 -
You should probably submit a support ticket. 0 -
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 -
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 -
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.
Comments
5 comments