Skip to main content

How to Configure SSH Password Authentication

Configure the server's SSH configuration to allow or disallow login attempts using passwords. This procedure is performed in WHM and affects the ability of all users to connect to the server via SSH using a password.

Configure the server's SSH configuration to allow or disallow login attempts using passwords. This procedure is performed in WHM and affects the ability of all users to connect to the server via SSH using a password.

Warning: Disabling password authentication will prevent any user from logging in via SSH using a password. Ensure you have established and tested SSH Key authentication before disabling password authentication to avoid being locked out of your server.

Before you begin

You will need:

  • Root access to the WHM interface

  • A valid SSH key for your own account if you intend to disable password authentication

Configure SSH Password Authentication

  1. Log in to WHM.

  2. Navigate to Security Center > SSH Access.

  3. Locate the Password Authentication setting.

  4. Select On to allow users to log in with a password, or Off to require SSH keys for login.

  5. Click Save.

Confirm the result

  • If you enabled password authentication, you can now attempt to log in to the server via an SSH client using your root or user password.

  • If you disabled password authentication, only users with a correctly configured and authorized SSH key will be able to connect via SSH.

Limitations

This setting applies globally to the server. Changing this setting affects all accounts on the server, including the root account and all individual cPanel accounts.

Did this answer your question?