Configure Password Authentication

Password authentication is supported by default; no configuration is required on either the server or the client to use this authentication method. Use these procedures if you want to modify the default server or client configuration.

NOTE:Password authentication can be also done using the keyboard-interactive method, which is the preferred method.

To configure password authentication on the client

  1. Open the client configuration file (/etc/ssh2/ssh2_config) in a text editor.

  2. Edit the AllowedAuthentications keyword.

To configure password authentication on the server

  1. Open the server configuration file (/etc/ssh2/sshd2_config) in a text editor.

  2. Edit AllowedAuthentications or RequiredAuthentications.

  3. (Optional) Use PasswordGuesses to change the maximum number of attempts a user is allowed for password authentication. (The default is 3.) For example:

    PasswordGuesses=5