user-interface maximum-vty

Function

The user-interface maximum-vty command sets the maximum number of login users.

The undo user-interface maximum-vty command restores the default maximum number of login users.

By default, the maximum number of Telnet and SSH users are 21.

Format

user-interface maximum-vty number

undo user-interface maximum-vty

Parameters

Parameter Description Value
number

Specifies the maximum number of Telnet and SSH users.

It is an integer data type. Value ranges from 0 to 21.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
tty write

Usage Guidelines

If the VTY node ID for all login users are less than the configured user number, the system accepts the configuration. Otherwise, it reports that the configuration is invalid.

If the VTY channels are fully occupied after the configuration is committed, new connections are not allowed and the current users are not terminated.

Example

# Set the maximum number of Telnet users to 7.
<HUAWEI> system-view
[~HUAWEI] user-interface maximum-vty 7
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >