< Home

user assign { rsa | dsa } public-key

Function

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.

Format

user user-name assign { rsa | dsa } public-key public-key-name

undo user user-name assign { rsa | dsa } public-key

Parameters

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.

Views

NETCONF view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Assign the DSA public key key1 to the NETCONF user named huawei.

<HUAWEI> system-view
[HUAWEI] netconf
[HUAWEI-netconf] user huawei assign dsa public-key key1 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic