Disabling SSH password authentication requires users to connect with an approved alternative such as an SSH key. This guide explains how to make that change through WHM after confirming that administrator key access works.

Before you start

You need the relevant WHM security permissions. Configure and authorise the required keys first, including administrator access, and confirm that you have provider console or another recovery route.

Keep an existing administrative SSH session open. From a separate terminal, test key access without password fallback, replacing the user, address and key path:

ssh -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o KbdInteractiveAuthentication=no -i /path/to/private_key [email protected]

Confirm that the account can perform any required administrative tasks before proceeding.

Disable password authentication

  1. Log in to WHM and open Security Center > SSH Password Authorization Tweak.
  2. Click Disable Password Auth.
  3. Check the success message.
  4. Open another new SSH connection using the tested key and confirm that it works.
  5. Check the effective SSH configuration if custom include files or authentication rules are in use.
  6. Close the original session only after the new login and recovery arrangements are confirmed.

ssh password

WHM and cPanel web passwords are separate and are not disabled by this setting. To reverse it, use Enable Password Auth through WHM or the approved recovery route.