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.

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

Discussion in 'Security' started by afndeveloper, Apr 16, 2016.

  1. afndeveloper

    afndeveloper Member

    Joined:
    Feb 10, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. afndeveloper

    afndeveloper Member

    Joined:
    Feb 10, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  3. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    72
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
Loading...

Share This Page