The rsa peer-public-key command configures an encoding format for RSA public key and enters the RSA public key view.
The undo rsa peer-public-key command deletes the RSA public key.
By default, rsa peer-public-key is not configured.
Parameter | Description | Value |
---|---|---|
key-name |
Specifies the RSA public key name. |
The name is a string of 1 to 40 characters without a blank space. When quotation marks are used around the string, spaces are allowed in the string. |
encoding-type enc-type |
Specifies an encoding format for RSA public key, the default is DER. |
The value is an enumerated type, which can be:
|
Usage Scenario
When you use RSA public key for authentication, specify the public key on the server for the client of SSH users. When the client logs in to the server, the server uses the specified public key to authenticate the client.
Peer public keys can be in the PKCS#1 format only.
The public key on the client is randomly generated by the client software.
Follow-up Procedure
Precautions
If the RSA public key has been assigned to an SSH user, run the undo ssh user user-name assign rsa-key command to delete the mapping between the RSA public key and the SSH user. If you do not delete the mapping, the undo rsa peer-public-key command cannot delete the RSA public key.
A maximum of 20 RSA public keys can be configured.