The ssh server publickey command enables the public key algorithm function of the SSH server.
The undo ssh server publickey command restores public key algorithms of the SSH server to default values.
If the default configuration file is used, the RSA_SHA2_256, RSA_SHA2_512, RSA, and ECC public key algorithms are enabled, whereas the DSA, SM2, and x509v3-ssh-rsa algorithms are disabled. If the ssh server publickey command configuration does not exist in the configuration file that is in use, only RSA_SHA2_256 and RSA_SHA2_512 public key algorithms are enabled.
Parameter | Description | Value |
---|---|---|
dsa |
Indicates the DSA algorithm. |
- |
ecc |
Indicates the ECC algorithm. |
- |
rsa |
Indicates the RSA algorithm. |
- |
sm2 |
Indicates the SM2 algorithm. |
- |
x509v3-ssh-rsa |
Indicates the X509-SSH-RSA algorithm. |
- |
rsa_sha2_256 |
Indicates the RSA SHA2-256 algorithm. |
- |
rsa_sha2_512 |
Indicates the RSA SHA2-512 algorithm. |
- |
Usage Scenario
Precautions