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.
IN THIS ARTICLE
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
- 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.
- 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.
- Update backup, deployment and monitoring jobs that still depend on an SSH password. Test each replacement method.
- Open SSH Password Authorization Tweak in WHM and disable password authentication when the inventory is ready.
- 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.