< Home

ssh authentication-type default password

Function

The ssh authentication-type default password command configures password authentication as the default authentication mode for SSH users.

The undo ssh authentication-type default password command cancels the default password authentication mode for SSH users.

By default, the default authentication mode of SSH users is password authentication.

Format

ssh authentication-type default password

undo ssh authentication-type default password

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When there are multiple SSH users, the default password authentication mode simplifies the configuration.

When a TACACS server is used to authenticate a user who uses SSH to log in to a device, the network administrator must specify the SSH user on the TACACS server. In most cases, the SSH server cannot obtain the user information from the TACACS server. In this situation, you can set the authentication mode to password. SSH users can then directly log in to the device without additional SSH user configurations on the device.

Precautions

To configure password authentication for a specific SSH user, you can also run the ssh user user-name authentication-type password command.

Example

# Configure password authentication as the default authentication mode for SSH users.

<HUAWEI> system-view
[HUAWEI] ssh authentication-type default password
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >