The user user-name assign { rsa | dsa } public-key public-key-name command assigns an existing RSA or DSA public key to a specified user.
The undo user user-name assign { rsa | dsa } public-key command deletes the mapping between a user and an RSA or DSA public key.
By default, no RSA or DSA public key is assigned to a user.
user user-name assign { rsa | dsa } public-key public-key-name
undo user user-name assign { rsa | dsa } public-key
Parameter | Description | Value |
---|---|---|
user-name |
Specifies a NETCONF user name. |
The value is a string of 1 to 25 case-insensitive characters without spaces. NOTE:
If the string is enclosed in quotation marks, the string can contain spaces. |
rsa |
Assigns an RSA public key to a specified user. |
- |
dsa |
Assigns a DSA public key to a specified user. |
- |
public-key-name |
Specifies the name of an RSA or DSA public key. |
The value is a string of 1 to 30 case-insensitive characters without spaces. NOTE:
If the string is enclosed in double quotation marks ("), the string can contain spaces. |
When a controller acting as a NETCONF client needs to log in to the switch acting as the NETCONF server in RSA or DSA mode, you can run this command to assign an RSA or DSA public key to a specified user. If multiple public keys are assigned to a user, the last assigned public key takes effect.