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-nistp256ecdsa-sha2-nistp384ecdsa-sha2-nistp521ssh-ed25519将rsa-sha2-256用户rsa - sha2 - 512x509v3-ecdsa-sha2-nistp256x509v3-ecdsa-sha2-nistp384x509v3-ecdsa-sha2-nistp521x509v3-rsa2048-sha256x509v3-sign-rsax509v3-ssh-rsa
Default set of public key algorithms in priority order:
rsa-sha2-256用户rsa - sha2 - 512将ecdsa-sha2-nistp256ecdsa-sha2-nistp384ecdsa-sha2-nistp521ssh-ed25519x509v3-rsa2048-sha256x509v3-ssh-rsax509v3-sign-rsax509v3-ecdsa-sha2-nistp256x509v3-ecdsa-sha2-nistp384x509v3-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