max-session
Use this command to set maximum VTY session limit.
Use no form of this command to unset session-limit.
User can configure session-limit for Telnet and SSH sessions separately but this max-session parameter value takes the precedence to restrict the maximum number of sessions. If user configured this max-session to be 4, then the device would allow only maximum of 4 SSH and Telnet sessions collectively irrespective of the individual SSH and Telnet max-session configuration. Active sessions won’t be disturbed even if the configured max-session limit is lesser than the current active sessions.
Command syntax
max-session <1-40>
Parameters
<1-40>
Number of sessions
Default
By default, 40 sessions are allowed.
Command Mode
Line mode
Applicability
This command is introduced in OcNOS version 5.0
Example
In the following example max-session is configured as 4, thus the device would allow only 4 management sessions of SSH and Telnet collectively.
#configure terminal
(config)#line vty
(config-all-line)#max-session 5
(config-all-line)#commit
(config-all-line)#exit
(config)#exit
Last modified date: 10/19/2023