Planning key-based administrator access before disabling SSH passwords

Disabling SSH password authentication reduces exposure to password guessing, but every authorised administrator must first have a working alternative. The change also affects root SSH access, so prepare recovery before applying it.

Information to have ready

Confirm a working provider console, protect private keys and inventory automated SSH/SFTP jobs. Test the intended key-based administrator login in a completely new connection, including any required privilege elevation.

01 Plan key-based administrator access before disabling SSH passwords

  1. Install and authorise the correct public keys using the supported account or root-key management workflow. Keep private keys on the authorised client or protected secret system.
  2. Open a second SSH connection that explicitly uses the key and verify it reaches the correct server account. Do not count an already established session as proof.
  3. Update backup, deployment and monitoring jobs that still depend on an SSH password. Test each replacement method.
  4. Open SSH Password Authorization Tweak in WHM and disable password authentication when the inventory is ready.
  5. Test a fresh key-based login again and confirm password-based login is rejected as intended. Keep the recovery console available until all critical integrations pass.

Confirm the intended access works

Authorised key access should continue while SSH password authentication follows the new policy. WHM browser passwords and unrelated service logins are separate authentication paths.

Troubleshoot unexpected results

If key authentication fails, use the retained administrative session or provider console to restore the approved configuration and inspect key ownership, permissions and daemon settings. Do not close the only working access path before testing.

Does this revoke a stolen SSH key?

No. Password policy does not invalidate authorised public keys. Remove the compromised key from every affected account and inspect sessions and related credentials separately.

  • 0 Users Found This Useful
  • cpanel-whm, development
Was this answer helpful?

Related Articles

Setting the default nameservers in WHM

The WHM default nameservers provide nameserver values for account provisioning on the server....

Changing the server root password in WHM

The root password controls a highly privileged server account. Change it only when you...

Using WHM disabled features for server-wide restrictions

The special disabled feature list is a server-wide restriction mechanism. It overrides ordinary...

Setting the server time and timezone in WHM

Accurate server time matters for logs, scheduled jobs, authentication and licensing. A timezone...

Setting up private nameservers for a WHM reseller

Private nameservers such as ns1.example.com and ns2.example.com let customers use nameservers...