The ssh server publickey command enables or disables public key algorithms of the SSH server.
The undo ssh server publickey command restores public key algorithms of the SSH server to default values.
By default, the DSA, ECC, and RSA public key algorithms are enabled.
| Parameter | Description | Value |
|---|---|---|
dsa |
Enables or disables DSA for the SSH server. |
- |
ecc |
Enables or disables ECC for the SSH server. |
- |
rsa |
Enables or disables RSA for the SSH server. |
- |
Usage Scenario
The command enables you to use a secure public key algorithm to log in to the server, with other public key algorithms rejected. This improves device security.
Configuration Impact
To allow a public key algorithm and deny other public key algorithms, run the ssh server publickeyspecified public key algorithm command. For example, after the ssh server publickey ecc command is run, the ECC algorithm is allowed but the DSA or RSA algorithm is not.
Precautions
A public key algorithm can be used for login only after it is enabled on both the client and server.
This command applies to both IPv4 and IPv6 clients.