ssh public-key-algorithms

Syntax

ssh public-key-algorithms没有ssh public-key-algorithms

描述

Configures SSH to use a set of public key algorithms in the specified priority order. The first public key type entered in the CLI is considered a first priority. Public key algorithms specify which public key types can be used for public key authentication in SSH. Each option represents a public key type that the SSH server can accept or that the SSH client can present to a server. Only the public key algorithms that are chosen by the user are configured.

The没有form of this command removes the configuration of public key algorithms and reverts SSH to use the default set.

Command context

config

Parameters

Valid public key algorithm types are:

  • ecdsa-sha2-nistp256

  • ecdsa-sha2-nistp384

  • ecdsa-sha2-nistp521

  • ssh-ed25519

  • rsa-sha2-256

  • 用户rsa - sha2 - 512

  • x509v3-ecdsa-sha2-nistp256

  • x509v3-ecdsa-sha2-nistp384

  • x509v3-ecdsa-sha2-nistp521

  • x509v3-rsa2048-sha256

  • x509v3-sign-rsa

  • x509v3-ssh-rsa

Default set of public key algorithms in priority order:

  1. rsa-sha2-256

  2. 用户rsa - sha2 - 512

  3. ecdsa-sha2-nistp256

  4. ecdsa-sha2-nistp384

  5. ecdsa-sha2-nistp521

  6. ssh-ed25519

  7. x509v3-rsa2048-sha256

  8. x509v3-ssh-rsa

  9. x509v3-sign-rsa

  10. x509v3-ecdsa-sha2-nistp256

  11. x509v3-ecdsa-sha2-nistp384

  12. x509v3-ecdsa-sha2-nistp521

权威

Administrators or local user group members with execution rights for this command.

Examples

Configuring SSH to use a set of specified public key algorithms:

switch(config)#ssh public-key-algorithms x509v3-ssh-rsa ssh-rsa rsa-sha2-256

Reverting SSH to use the default set of public key algorithms:

switch(config)#没有ssh public-key-algorithms