How to Log In to Your Server or Account

This article explains how to log in to cPanel, WHM, Webmail, and the Command Line Interface (CLI). It also covers service URL structure, external authentication, two‑factor authentication (2FA), locale selection, and resolving SSL login warnings.

Webmail authenticationWHM accesscPanel login

~3 min read · Updated Feb 14, 2026

1. Introduction


This guide explains how to access cPanel, WHM, Webmail, and the CLI. The examples use IP 198.51.100.1 and domain example.com.


2. Understanding cPanel & WHM Service URLs


SectionDescriptionExample
ProtocolAlways https:// for secure accesshttps://
AddressServer IP or domain nameexample.com
PortService port (e.g., 2083 for cPanel)2083
Security TokenSession token (cpsess) to prevent XSRFcpsess1234567890

Note: If DNS has not propagated, use the IP address instead of the domain. DNS propagation may take 48–72 hours.


3. How to Log In to cPanel


3.1 Direct Login URLs

  • https://198.51.100.1:2083
  • https://example.com:2083

3.2 Log In with cPanel Credentials

  • Enter your cPanel username.
  • Enter your password.
  • Click Log in.

3.3 Log In with External Authentication

Your hosting provider may allow login using:

  • cPanelID
  • Google
  • Facebook
  • Hosting provider portal

If multiple cPanel accounts are linked, you will be prompted to choose one.


3.4 Log In with Two‑Factor Authentication (2FA)

  • Open your 2FA app.
  • Enter the six‑digit code.
  • Click Continue.

Note: 2FA allows only one active session at a time.


4. How to Log In to WHM


4.1 Direct Login URLs

  • https://198.51.100.1:2087
  • https://example.com:2087

Note: Only root or reseller users can access WHM.


4.2 Log In with WHM Credentials

  • Enter your WHM username.
  • Enter your password.
  • Click Log in.

4.3 Log In with External Authentication

Similar to cPanel, select your external provider and authenticate.


4.4 Log In Using the whmlogin Script

To generate a one‑time login URL:


/usr/local/cpanel/scripts/whmlogin

Open the generated URL in your browser.


5. How to Log In to Webmail


5.1 Direct Login URLs

  • https://198.51.100.1:2096
  • https://example.com:2096

5.2 Log In with Webmail Credentials

  • Enter your email address.
  • Enter your password.
  • Click Log in.

5.3 Log In with External Authentication

Same process as cPanel and WHM.


5.4 Access Webmail from Inside cPanel

  • Go to Email Accounts.
  • Click Check Email next to the desired account.

6. How to Access the Command Line (SSH)


Some administrative tasks require CLI access. Your hosting provider controls SSH permissions. For details, refer to the “How to Access the Command Line” documentation.


7. Change the Login Interface Locale


At the bottom of the login page, select your preferred language. If your browser sends an Accept‑Language header, the interface attempts to match it.


A cookie stores your locale for one year.


8. Resolve SSL Login Warning


If you see the message “There is a problem with this website’s security certificate.”, refer to the “Automatic Hostname SSL Certificate Replacement” documentation.


Conclusion


This guide covers all login methods for cPanel, WHM, Webmail, and CLI. Understanding service URLs, external authentication, and 2FA helps ensure secure and efficient server access.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue