ssh client first-time

Syntax

ssh client first-time [ enable ]

undo ssh client first-time

View

System view

Default level

2: System level

Parameters

enable: Enables the first-time authentication of the SSH client to the SSH server. This keyword is not necessary. Even if it is not specified, the command can also enable the first-time authentication function.

Description

Use ssh client first-time to enable the first-time authentication function.

Use undo ssh client first-time to disable the function.

By default, the function is enabled.

With first-time authentication, when an SSH client not configured with the server host public key accesses the server for the first time, the user can continue accessing the server, and save the host public key on the client. When accessing the server again, the client uses the saved server host public key to authenticate the server.

Without first-time authentication, a client that is not configured with the server host public key refuses to access the server. To access the server, a user must configure in advance the server host public key locally and specify the public key name for authentication.

Because the server might update its key pairs periodically, clients must obtain the most recent public keys of the server for successful authentication of the server.

Examples

# Enable the first-time authentication function.

<Sysname> system-view
[Sysname] ssh client first-time enable