Configuring whether first-time authentication is supported

When the switch acts as an SSH client and connects to the SSH server, you can configure whether the switch supports first-time authentication.

Enabling the switch to support first-time authentication

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable the switch to support first-time authentication.

ssh client first-time [ enable ]

Optional.

By default, first-time authentication is supported on a client.

Disabling first-time authentication

For successful authentication of an SSH client not supporting first-time authentication, the server host public key must be configured on the client and the public key name must be specified.

To disable first-time authentication:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Disable first-time authentication support.

undo ssh client first-time

By default, first-time authentication is supported on a client.

3. Configure the server host public key.

See "Configuring a client's host public key"

The method for configuring the server host public key on the client is similar to that for configuring client public key on the server.

4. Specify the host public key name of the server.

ssh client authentication server server assign publickey keyname

N/A