Remove Security Restricted Access for SSH/WHM?

Bashed

Well-Known Member
Dec 18, 2013
143
4
68
cPanel Access Level
Root Administrator
Client on his KVM server is locked out and I cannot assist due to the password auth disabled on SSH set and WHM apparently has some restrictions set. I'm logged into the VM console and not sure where to remove both restrictions to get back in.
 

Infopro

Well-Known Member
May 20, 2003
17,112
514
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
The docs may be useful here:
How to Secure SSH - cPanel Knowledge Base - cPanel Documentation

Code:
Warning:

If you accidentally misconfigure your SSH configuration file, navigate to the following link in your web browser (where example.com represents the server's hostname or main IP address):

https://example.com:2087/scripts2/doautofixer?autofix=safesshrestart
This script attempt to will temporarily configure an additional SSH configuration file for port 22, which will allow you to access, edit, and fix the original SSH configuration file. If port 22 is already in use, then the script will configure an additional SSH configuration file for port 23.
 
  • Like
Reactions: linux4me2

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
If you are in VMconsole, you can check the configuration file of SSH (/etc/ssh/sshd_config ) and see the below settings

PermitRootLogin Yes (mostly you have set this to no)
PasswordAuthentication yes (mostly you have set this to no)

This will make you login to server using server root pass.

By locked out, if you mean client's ip got blocked, then you could check the same in WHM if CSF is installed in the server