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.


OceanStor 9000 V5 7.0 Command Reference 03

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).
change system sshauthmode

change system sshauthmode


Sets the authentication mode of SSH logins.


change system sshauthmode < sshauthmode >





sshauthmode Authentication mode of SSH logins.

Password: Only the password authentication mode is supported for SSH logins.

Publickey: Only the key authentication mode is supported for SSH logins.

Both: Both the password and key authentication modes are supported for SSH logins.

root password Password of user root.

The value is the password of operating system user root and contains a string of characters.


Super administrator

Usage Guidelines



Sets the authentication mode of SSH logins.

admin:/>change system sshauthmode Both 
Please input the root password:************
WARNING: You are about to set the SSH authentication type. This operation will restart the sshd service and the connected SSH service will be disconnected. If you select Public Key only, import the public and private key certificates of the operating system account. Otherwise, the system SSH login fails. Suggestion: Select Public Key only to ensure a more secure login through the SSH.
Have you read warning message carefully?(y/n)y
Are you sure you want to perform the operation?(y/n)y
Command executed successfully.

System Response


Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 25119

Downloads: 7

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