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.


Fat AP and Cloud 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.

If the user named user-name to whom a public key is assigned does not exist, the system automatically creates an SSH user named user-name and performs the configured authentication for the SSH user.


# Assign key1 to a user named John.

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

Document ID: EDOC1100064352

Views: 204604

Downloads: 122

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