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:
rsa-sha2-256
用户rsa - sha2 - 512
将
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
ssh-ed25519
x509v3-rsa2048-sha256
x509v3-ssh-rsa
x509v3-sign-rsa
x509v3-ecdsa-sha2-nistp256
x509v3-ecdsa-sha2-nistp384
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