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

  1. Log in to WHM as root, the main server administrator.

    Login to WHM

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

    Manage Root’s SSH Key

  3. Click Import Key.

    Import Key

  4. 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.

    import existing SSH Key

  5. Click Import.

Authorise and test the key

  1. Return to Manage root’s SSH Keys.
  2. Under Public Keys, select Manage Authorization beside the imported key, then click Authorize.
  3. 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.