< Home

ssh user

Function

The ssh user command creates an SSH user.

The undo ssh user command deletes an SSH user.

Format

ssh user user-name

undo ssh user [user-name ]

Parameters

Parameter Description Value
user-name Specifies the name of an SSH user. The value is a string of 1 to 253 characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

Yo can create a user using either of the following methods:

When the undo ssh user [ user-name ] command is executed to delete SSH users, if user-name is specified, the specified SSH user is deleted. If user-name is not specified, all SSH users are deleted.

After running this command to create an SSH user, you must run the ssh user authentication-type command to specify the authentication mode for the SSH user. Otherwise, the SSH user fails to log in.

Example

# Create an SSH user named testuser.

<sysname> system-view
[sysname] ssh user testuser
Info: Succeeded in adding a new SSH user.

# Delete an SSH user named testuser.

<sysname> system-view
[sysname] undo ssh user testuser
Info: Succeeded in deleting the SSH user.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >