service-type

Function

The service-type command configures the user access type in a domain.

The undo service-type command restores the default configuration.

By default, a local user can use any access type.

Format

service-type { ftp | ppp | ssh | telnet | terminal | snmp | qx | mml | http } *

undo service-type

Parameters

Parameter Description Value
ftp

Indicates FTP users.

-

ppp

Sets the access type of the local user to PPP.

-

ssh

Indicates SSH users.

-

telnet

Indicates Telnet users, which usually refers to administrators.

-

terminal

Indicates terminal users, which usually refer to VTY users.

-

snmp

Indicates SNMP users.

-

qx

Sets the access type of the local user to QX.

-

mml

Sets the access type of the local user to MML.

-

http

Sets the access type of the local user to HTTP.

-

Views

AAA domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To configure the user access type for a domain, run the service-type command.

Prerequisites

A domain has been created.

Precautions

The local-user service-type command configures the user access type for a specific user. When a user attempts to log in, the access type configured in the domain view and the access type configured using the local-user service-type command are checked in sequence. The user is allowed to log in only when both access types are authenticated.

Example

# Set the access type in the AAA domain huawei.net to SSH.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei.net
[*HUAWEI-aaa-domain-huawei.net] service-type ssh
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >