ssh server algorithm

Configures the SSH server host key algorithm to be used for X.509v3 certificate-based SSH authentication (server authentication).

Syntax

ssh server algorithm {hostkey {x509v3-ssh-rsa | x509v3-rsa2048-sha256}}
no ssh server algorithm hostkey

Command Default

The host key algorithm is not configured.

Parameters

hostkey {x509v3-ssh-rsa | x509v3-rsa2048-sha256}
Designates x509v3-SSH-RSA or x509v3-RSA2048-SHA256 as the host key algorithm.

Modes

Global configuration mode

Usage Guidelines

Use the no form of the command to remove the configured algorithm.

Examples

This example configures x509v3-SSH-RSA as the host key algorithm.

device# configure terminal
device(config)# ssh server algorithm hostkey x509v3-ssh-rsa