< Home

ssh user service-type

Function

The ssh user service-type command configures the service type for the SSH user.

The undo ssh user service-type command cancels the service type for the SSH user and restores the default configuration, that is, no service type is adopted.

Format

ssh user username service-type { sftp | stelnet | all }

undo ssh user username service-type

Parameters

Parameter Description Value
username Specifies the name of an SSH user. The value is a string of 1 to 253 characters.
sftp Indicates the SFTP service type. -
stelnet Indicates the STelnet service type. -
all Indicates both the SFTP service type and the STelnet service type are configured for the user. -

Views

System view

Default Level

3: Management level

Usage Guidelines

If the user does not exist, a new SSH user with the specified username is created and the configured service type is adopted for the user.

By default, the service type of the SSH user is not configured.

Example

# Set the service type to SFTP and STelnet for the SSH user named user1.

<sysname> system-view
[sysname] ssh user user1 service-type all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >