Cannot access WHM and SSH/root after an editing in Host Access Control

afndeveloper

Member
Feb 10, 2016
5
0
1
Turkey
cPanel Access Level
Root Administrator
Hello,

I have a major problem and I am at my wit's end. First, I added my IP (like 172.32.1.0/255.255.255.0) to allow access for ssh, whm and cpanel in WHM -> Host Access Control. Then, I added all IP to deny access for them. However, after saved changes, I lost access all of them. Now, If I try to login WHM, I see "HTTP error 401 You do not have permission to access this page.". Also, I cannot access SSH. I don't know what to do. Please help me. Thank you.
 

afndeveloper

Member
Feb 10, 2016
5
0
1
Turkey
cPanel Access Level
Root Administrator
Hello,

I have a major problem and I am at my wit's end. First, I added my IP (like 172.32.1.0/255.255.255.0) to allow access for ssh, whm and cpanel in WHM -> Host Access Control. Then, I added all IP to deny access for them. However, after saved changes, I lost access all of them. Now, If I try to log in WHM, I see "HTTP error 401 You do not have permission to access this page.". Also, I cannot access SSH. I don't know what to do. Please help me. Thank you.
 

TerranceR

Well-Known Member
Jul 9, 2015
74
10
83
Houston, TX
cPanel Access Level
Root Administrator
Hello,

You will need to gain console access to your server and edit/update /etc/hosts.deny and /etc/hosts.allow to update your settings. If you do not have console access then you will have to contact your Hosting Provider or Datacenter to have them do this for you.