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.


FusionServer G5500 Server iBMC (V300 or Later) User Guide 04

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).
Importing an SSH Public Key for a User (addpublickey)

Importing an SSH Public Key for a User (addpublickey)


The addpublickey command is used to import an SSH public key for a user.


ipmcset -t user -d addpublickey -v username filepath file URL


Parameter Description Value
username Specifies the user for whom the SSH public key is to be imported. An existing user name.
filepath Specifies the path from which the public key will be imported. The value must be in the /Path/File name format. For example, /tmp/id_dsa_1024.key
file URL Specifies the URL of the public key file to be imported.

A value in the following format:



  • protocol must be https or http.
  • username and password are the user name and password for accessing the target server.
  • directory/filename is the path of the public key file on the target server.

Usage Guidelines

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the SSH public key file to the specified directory (for example /tmp) of the iBMC file system.

The administrators can import SSH public keys for all users. Common users can import only their own SSH public keys.


# Import an SSH public key for user ssh_user.

iBMC:/->ipmcset -t user -d addpublic -v ssh_user /tmp/id_dsa_1024.key
Input your password:
Add user public key successfully.
Updated: 2018-10-31

Document ID: EDOC1100031438

Views: 89009

Downloads: 49

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