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 restore the default configuration, that is, no service type is adopted.

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

Format

ssh user user-name service-type all

Parameters

Parameter Description Value
user-name

Indicates the name of an SSH user.

The name is a string of 1 to 253 characters.

all

Indicates that SFTP, STelnet, SCP, or SNETCONF can be used as the service mode.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

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

Example

# Configure the service type for SSH users.
<HUAWEI> system-view
[~HUAWEI] ssh user john service-type all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >