This guide explains how to import an existing public SSH key into WHM and authorise it for root access. The matching private key stays on the device used to connect to the server.
Import the public key
Authorising a key for root grants full server access to whoever holds its matching private key. Import only a key belonging to an approved administrator and keep the private key protected.
-
Log in to WHM as root, the main server administrator.

-
Open Security Center > Manage root’s SSH Keys.

-
Click Import Key.

-
Enter a name for the key and paste the complete public key into the public-key field. For authorising an incoming connection, leave the private-key and private-key passphrase fields empty.

-
Click Import.
Authorise and test the key
- Return to Manage root’s SSH Keys.
- Under Public Keys, select Manage Authorization beside the imported key, then click Authorize.
- From the approved device, test an SSH connection using the matching private key. Keep an existing administrator session open until the test succeeds.
The SSH service must also permit the intended connection; importing and authorising a key does not override its login policy or firewall rules.