SSH (Secure Shell) allows you to manage your hosting account through a command line interface. This gives you direct access to your server environment for running scripts, managing files and executing administrative tasks that would take longer through a control panel.
You will generate an SSH key pair on your local machine, upload the public key to cPanel and configure your SSH client to connect. Once complete, you can access your account securely without entering passwords each time.
SSH key pairs consist of a private key that stays on your computer and a public key that you upload to the server. The terminal on Linux and macOS includes the ssh-keygen command for generating these keys.
ssh-keygen -t rsa and press Enter. This creates an RSA key pair suitable for SSH authentication./user/.ssh/ with the filename id_rsa. This is the standard location SSH clients check automatically.id_rsa and your public key as id_rsa.pub in the .ssh directory.Your key pair is now ready. Keep your private key secure on your local machine and never share it. You will upload the public key to cPanel in a later step.
Windows requires PuTTY’s key generation tool called PuTTYgen. This creates key pairs in the PPK format that PuTTY uses for authentication.

hosting-ssh-key.ppk.
Your Windows key pair is now created. The private key is saved securely on your computer and the public key is ready to upload to your hosting account.
cPanel stores authorised public keys that can connect to your account. You need to import your public key and authorise it before you can establish an SSH connection.
https://yourdomain.co.uk:2083 using your cPanel username and password.


laptop-ssh-key. This helps you identify which device the key belongs to if you manage multiple keys.~/.ssh/id_rsa.pub in a text editor, copy the contents and paste them here. Leave the Private Key field blank.


Your public key is now authorised on the server. You can connect via SSH using your private key for authentication.
The SSH client on Linux and macOS automatically uses your private key from ~/.ssh/id_rsa when connecting. You need to specify your username, server hostname and the correct port number.
yourusername with your cPanel username and serverhostname with your server’s hostname from your welcome email:ssh -p 9284 yourusername@serverhostname
The -p 9284 flag specifies the custom SSH port our servers use. Standard SSH connections use port 22, but we use port 9284 for additional security.
yes and press Enter. This adds the server to your list of known hosts.You now have command line access to your hosting account. You can run commands, manage files and execute scripts directly on the server.
Windows SSH connections require two PuTTY tools: Pageant to manage your private key and PuTTY itself to establish the connection. Pageant runs in the background and provides your key to PuTTY when needed.
.ppk file and open it. Enter your passphrase when prompted.
9284. Leave Connection type set to SSH.
login as:, enter your cPanel username and press Enter. Pageant automatically provides your private key for authentication and you are logged in.Your SSH connection is now active. You can execute commands and manage your hosting account through the terminal window.
SSH connection problems usually relate to key configuration, port settings or authentication issues. These solutions address the most common problems.
These errors occur when your SSH client cannot reach the server. This is usually caused by incorrect port settings or firewall restrictions.
Permission denied messages indicate authentication failures. Your private key is not matching the public key stored on the server.
chmod 600 ~/.ssh/id_rsaThese errors appear when your SSH client cannot read your private key file. The key may be corrupted, in the wrong format or stored in an unexpected location.
~/.ssh/id_rsa or specify the path with ssh -i /path/to/keySSH key pairs use public-key cryptography to authenticate connections without transmitting passwords over the network. Your private key proves your identity by creating a digital signature that the server verifies using your public key. This prevents password interception and brute force attacks that target password-based authentication.
Adding a passphrase to your private key creates a second authentication layer. Even if someone copies your private key file, they cannot use it without the passphrase. This protects you if your computer is stolen or your backup storage is compromised. The SSH Academy provides detailed explanations of key generation options and security best practices.
Port 9284 reduces automated attacks that scan for SSH services on the standard port 22. Attackers typically target default ports with dictionary attacks and vulnerability scanners. Using a non-standard port does not prevent determined attackers but significantly reduces noise from automated scanning.
You now have secure SSH access to your hosting account. You generated a key pair on your local machine, uploaded and authorised the public key in cPanel, and configured your SSH client to connect using your private key. This gives you command line access for managing files, running scripts and executing administrative tasks.
Test your connection regularly to confirm it remains active. Store your private key securely and never share it with anyone. If you manage multiple servers or devices, consider creating separate key pairs for each one.
Our Premium Hosting plans include SSH access with no additional configuration required. If you run into any trouble, get in touch and our team will be happy to help.
Launch your website with our reliable cPanel hosting with unlimited bandwidth and expert support.
Get cPanel Hosting