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

Reminder

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

upgrade

FITAP 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

Function

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.

Format

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

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

Parameters

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.

Views

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.

Precautions

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.

Example

# Assign key1 to a user named John.

<Huawei> system-view
[Huawei] ssh user john assign rsa-key key1
Translation
Download
Updated: 2019-05-14

Document ID: EDOC1100064353

Views: 89266

Downloads: 61

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