Help

How to disable the location ban and security question at cPanel login with SSH access only

If logging in to cPanel triggers a location ban or asks a security question, and you only have SSH access (root access is required), you can turn these checks off manually.

Disabling security questions over SSH

1. Connect to the server over SSH as root.

2. Open the cPanel configuration file for editing:

nano /var/cpanel/cpanel.config

3. Find or add the line:

SecurityPolicy::SourceIPCheck=0

* A value of 1 enables the IP check and security questions.
* A value of 0 disables them.

Make sure the parameter is set to 0 to disable security questions tied to the login IP address.

4. Save the changes and exit the editor.

5. Restart the cPanel service:

/scripts/restartsrv_cpsrvd

After these steps, security questions no longer appear at login and the IP check is disabled. You can sign in to cPanel without extra hurdles, even when you use a VPN or connect from different regions.

Have more questions about Hosting?