No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ssh user assign

ssh user assign


The ssh user assign command assigns an existing public key to a user.

The undo ssh user assign command deletes the mapping between the user and public key.

By default, no public key is assigned to a user.


ssh user user-name assign { rsa-key | ecc-key } key-name

undo ssh user user-name assign { rsa-key | ecc-key }


Parameter Description Value
user-name Specifies the SSH user name.

The value is a string of 1 to 64 case-insensitive characters without spaces.

rsa-key Specifies the RSA public key. -
ecc-key Specifies the ECC public key. -
key-name Specifies the client public key name. The value is a string of 1 to 30 characters.


System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When an SSH client needs to log in to the SSH server in RSA mode, run this command to assign a public key to the client. If the client has been assigned keys, the latest assigned key takes effect.


The newly configured public key takes effect upon next login.

When an authentication mode is configured for an SSH user but user-name of the user does not exist, run the display users command to check the user name and set user-name to the displayed user name.


# Assign key1 to a user named John.

<Huawei> system-view
[Huawei] ssh user john assign rsa-key key1
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 126827

Downloads: 98

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next