This article will show you how to login to WHM server.
How to Login to WHM Server
To access WHM, enter the IP address or domain and the 2087 port in your preferred browser. For example:
https://198.51.100.1:2087— Access WHM over an encrypted connection with your IP address.https://example.com:2087— Access WHM over an encrypted connection with your domain name.
In order to log into WHM, you must either be the root user, or a user with reseller privileges.
You can log in with one of the following methods:
Use WHM account
To log in with your WHM account, perform the following steps:
- Enter your WHM username in the Username text box.
- Enter your password in the Password text box.
- Click Log in. The WHM Home interface will appear.
If your account uses two-factor authentication (2FA), perform the following additional steps:
- Open your preferred 2FA app in your smartphone to retrieve the six-digit security code.
- Enter the six-digit security code that the app provides.
- Click Continue.
Use external authentication for WHM
To log in with external authentication, perform the following steps:
- Click the button that corresponds to your external authentication identity provider.
- If you need to log in to the identity provider, the provider’s login interface will appear. Enter your authentication credentials. Note:
If you own an account in the cPanel Store, the cPanel Tickets system, or the Manage2 billing system, use that username as your cPanelID. For more information, read our cPanelID documentation.
- Authorize the provider to log in to the server, if needed.
The WHM login interface appears and displays a message that confirms that you authenticated with the provider.
- If you already linked the identity provider to a single WHM account, the interface automatically logs you in.
- If you already linked the provider to multiple WHM accounts, a new interface appears. Select the desired cPanel account or click Link Another Account to link another cPanel account. Note:
Use the
add_authn_linkUAPI function to add additional accounts. Once you add more than one account, you can link additional accounts in the login interface. - If you need to link the identity provider to a WHM account, you will see the following message:
Your account is not associated with an existing "WHM" account. Please log in to connect the account.Enter your username and password and log in to your server. This action links the external provider to your WHM account.
Use the whmlogin script
The /usr/local/cpanel/scripts/whmlogin script generates a single-use session login URL for WHM. To access WHM with this script, perform the following steps:
- Use SSH to access the server as the
rootuser. - Run the
/usr/local/cpanel/scripts/whmloginscript. The output will resemble the following example:https://198.51.100.1:2087/cpsess1234567890/login/?session=root%3aAqI0aGGAFWI_Mab_%3acreate_user_session%2c31cd420f0fd6aca696a2890f580f2f0a - Navigate to the provided URL in your preferred browser. The WHM Home interface will appear.
