clear ssh host-keys

Regenerates the local ssh host keys.

Syntax

clear ssh host-key [ed25519|rsa]

Syntax Description

Keyword
Description

ed25519

Regenerate the ED25519 host key.

rsa

Regenerate the RSA host key.

Defaults

If no options are specified, all SSH host key types are regenerated.

Usage Guidelines

This command is used to delete and regenerate the local SSH host keys.

The host keys are used by remote clients to authenticate connections to the local system.

Examples

clear ssh host-key
clear ssh host-key ed25519

Last updated