You can configure the maximum number of VTY user interfaces to limit the number of concurrent login users.
The maximum number of VTY user interfaces is the total number of users who use Telnet and SSH to log in.
If the maximum number of VTY user interfaces is set to 0 on a router, no user can log in to the router using VTY.
The system view is displayed.
The maximum number of VTY user interfaces is set.
If the configured maximum number is greater than the current number, configure the authentication mode and password for additional users. The system uses password authentication to authenticate users who log in through newly added user interfaces.
For example, run the authentication-mode commands to increase the maximum number of allowed online users from 5 to 18. A password is entered in man-machine interaction mode. The system does not display the entered password. A password must meet the following requirements:
<HUAWEI> system-view [~HUAWEI] user-interface maximum-vty 18 [*HUAWEI] user-interface vty 5 17 [*HUAWEI-ui-vty5-17] authentication-mode password [*HUAWEI-ui-vty5-17] set authentication-mode password Please configure the login password (8-16) Enter Password: Confirm Password:
The password must meet the following requirements:
The password is entered in man-machine interaction mode. The system does not display the entered password.
A password is a string of 8 to 16 case-sensitive characters and must contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters.
For example, the password "Aa123"45"" is valid, but the password "Aa 123"45"" is invalid.
The configured password is displayed in ciphertext in the configuration file.
The configuration is committed.