< Home

service-type (administrator view)

Function

The service-type command sets a login method or service type.

The undo screen-type command restores the default login method or service type.

Format

service-type { api | ftp | ssh | telnet | terminal | web } *

undo service-type

Parameters

Parameter Description Value

api

Indicates the API service.

-

ftp

Indicates the FTP service.

-

ssh

Indicates the SSH service.

-

telnet

Indicates the Telnet login method.

-

terminal

Indicates the console login method.

-

web

Indicates the web login method.

-

Views

Administrator view

Default Level

2: Configuration level

Usage Guidelines

By default, no service type is specified for an administrator created using the CLI.

There are security risks if the service type is configured to be Telnet or FTP. So it is suggested to configure the service type to be SSH.

If the service type of an administrator account is changed from API to FTP/SSH/Telnet/Terminal/Web or vice versa, an administrator that logs in using this account is forced out.

If the service type of an administrator account is changed among FTP/SSH/Telnet/Terminal/Web, the service type of an administrator that already logs in using this account is not changed, and the service type of an administrator that newly logs in using this account is subject to the change.

The service types of virtual system administrators can be Web, Telnet, and SSH only.

The API service is mutually exclusive with other service types. If you specify the API service type, you cannot specify other service types.

The service type cannot be set to API for an account that has been bound to a role other than device-admin(monitor).

Example

# Enable an administrator named abc to use SSH login methods.

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