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

X6800 Server Node iBMC (V300 or Later) User Guide 07

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)

Function

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

Format

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

Parameters

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://username:password@IP:[port]/directory/filename

Where:

  • 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.

Example

# 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.
Translation
Download
Updated: 2019-02-28

Document ID: EDOC1100019360

Views: 77179

Downloads: 384

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