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.
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.