host-key-alg

This command specifies the host key algorithms that the server supports.

Syntax

host-key-alg algorithm

Parameters

algorithm
Specifies the SSH host key algorithms to support. The following table lists the supported algorithms.
Table 1. Supported SSH host key algorithms
Algorithm Values to enter
ssh-ed25519 SSH-ED25519
ecdsa-sha2-nistp256 ECDSA-SHA2-NISTP256
ecdsa-sha2-nistp384 ECDSA-SHA2-NISTP384
ecdsa-sha2-nistp521 ECDSA-SHA2-NISTP521
rsa-sha2-512 RSA-SHA2-512
rsa-sha2-256 RSA-SHA2-256

Guidelines

The host-key-alg command specifies the host key algorithms that the server supports. Host key algorithms are the algorithms to sign and verify the authenticity of an SSH server's host key. An empty list indicates that the server supports all algorithms. By default, the SSH server profile supports all algorithms.