< Home

ssh user

Function

The ssh user command creates an SSH user.

The undo ssh user command deletes an SSH user.

By default, no SSH user is created.

Format

ssh user user-name

undo ssh user [ user-name ]

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.
NOTE:

The string can contain spaces if it is enclosed with double quotation marks (").

Views

System view

Default Level

3: Management level

Usage Guidelines

You can create an SSH user in either of the following ways:

  • Run the ssh user command.

  • Run the ssh user authentication-type, ssh user service-type, or ssh user sftp-directory command with the user name you want to create. If the device cannot find the user with the name you specified, it automatically creates the user.

Example

# Create an SSH user named testuser.

<HUAWEI> system-view
[HUAWEI] ssh user testuser
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >