Skip to main content

No Access to WHM or SSH

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! If the change you made that is blocking you was done through WHM >> Host Access Control, that should not be hard to fix if you can get console access to the server. Once you are logged into the console you can edit the /etc/hosts.allow and /etc/hosts.deny files to remove the changes you added to the interface. At that point, things will be working normally. Once you have accessed the system, it would be a good idea to add your local IP address to the allow list on the system to avoid this happening again in the future. Can you try that and let me know how it goes?
    0
  • gobbly2100
    Hi there, Thank you for getting back so fast, can you let me know what commands I need to run? I am not very familiar with using a terminal to manage the server. Many thanks!
    0
  • cPRex Jurassic Moderator
    There isn't going to be one certain command that will take care of this. You'll need to access SSH, open the files, edit them, and save them, so that's a bit beyond the scope of a forums post. I'd recommend starting with this support article as that gives good information on how to edit a file with a text editor:
    0
  • gobbly2100
    Hi cPRex, Thank you for your assistance, you are amazing! I have managed to gain access to WHM again by deleting "hosts.allow" and "hosts.deny" files as I was not actually sure how to edit them via terminal commands. Thanks again!
    0
  • cPRex Jurassic Moderator
    While I'm glad things are working well, that's probably going to cause other errors on the machine. It would be best to recreate those, or have your host do that for you now that things are working.
    0

Please sign in to leave a comment.