- Pricing &
Locked Out Of cPanel VPS
Written by: Will Kruss on 18 October 2012 05:09 PM
Locked out of your cPanel VPS and cannot login as 'root' to through SSH? Find step by step to sort out such issues.
If you are locked out of your cPanel VPS and cannot login as 'root' to through SSH either, the problem could be either of two things:
1. You are blocked by ConfigServer Security & Firewall.
This is a plugin product that is installed by default on cPanel servers we provision. This is the most likely cause of losing access to your cPanel server. You can do a quick test to ensure that your server is online and it's only you who is blocked by testing it at https://isup.me
If you are blocked by ConfigServer Security & Firewall, the quickest thing to do is reset your ADSL modem and get a new IP address. This will allow you access again, and you can now login to WHM -> Plugins -> ConfigServer Security & Firewall. Find the 'Quick Allow' button, and hit a little cog icon next to it. This will auto fill the field with your IP address, then click 'Quick Allow'. This will whitelist your current IP address.
Alternatively you'll need to access WHM using another internet connection (for example through 3G or 4G on your phone), go to WHM -> Plugins -> ConfigServer Security & Firewall and choose 'Flush Blocks'. This will remove all current blocks and allow you regular access again.
ConfigServer Security & Firewall will block you if you are NOT on the whitelist, and if you try to login using incorrect credentials to any service on the server (this includes mail, cPanel, WHM, SSH, website authentication and FTP).
2. You are blocked by the cPHulk (cPanel brute force protection).
The easiest way to fix this is reset your ADSL modem and get a new IP address. You can then access WHM and find 'cPHulk Brute Force Protection'. You can whitelist your IP address in there. You can also flush all blocks in there.
Alternatively (if you cannot change your IP address or access WHM via another internet connection to flush any blocks), to fix this, you will need to restart your VPS (this can be done through the 'My Account' -> 'Manage VPS' on our website).
Set a constant ping to your VPS IP address while it's restarting by opening a command prompt and typing:
ping x.x.x.x -t
As soon as it starts to ping, you need to login through SSH (we recommend Putty)
Once you are in, type the following:
Try connecting now through WHM. If it still fails type:
rm -f /var/cpanel/hulkd/enabled
That will disable cpHulk which is the cause of the lockout, and restart cPanel. Now try logging into WHM again and you should be fine.
To avoid future blockage or lock out, it’s recommended to add your own IP address to the whitelist in cPHulk Brute Force Protection. To do so, go to WHM -> Security -> Security Center -> cPHulk Brute Force Protection.