You can create and authorize an SSH key in cPanel to provide secure, key-based access to your server. This process allows you to bypass password authentication for SSH connections, which is a more secure method for managing your server via the command line.
Important: This feature is only available on Hostek plans that support SSH access.
Before you begin
You will need:
A cPanel account
A local machine with an SSH client (such as PuTTY, OpenSSH, or Termius)
Create and authorize your SSH key
Log in to your cPanel account.
Locate the Security section and select SSH Access.
Click Manage SSH Keys.
Click Generate or Import SSH Key.
Enter a Key Name (e.g.,
my_laptop_key).Paste your Public Key into the provided field, if importing.
Click Submit.
Once the key is added, locate the key in the list and click Manage next to the specific key.
Click Authorize to make the key active for your account.
Confirm the result
The status of the key will change to Authorized in the SSH Access management list.
You can now connect to your server using the private key associated with this public key.
Limitations
This process only authorizes the key for your specific cPanel account; it does not grant root access to the entire server.
You must use the private key that corresponds to the public key you uploaded to establish a connection.
If you lose your private key, you will not be able to log in using that specific key and will need to generate a new pair and repeat the authorization process.
