Configuration of SSH Session Limit Greater than Max-Session
In the below section, configure SSH Session limit to be greater than Max-Session limit.
Topology
Setup consists of one node acting as SSH server.
Configuration of SSH server Session-Limit to be greater than line-vty max-session
#configure terminal | Enter configure mode |
(config)#no feature ssh vrf management | Disable feature SSH |
(config)#ssh server session-limit 12 vrf management | Configure Session-limit as 12 for SSH server |
(config)#commit | Perform commit to submit changes |
(config)#feature ssh vrf management | Enable SSH server |
(config)#commit | Perform commit to submit changes |
(config)#line vty | Enter line VTY mode |
(config-line)#max-session 10 | Configure max-session as 10 |
(config-line)#commit | Perform commit to submit changes |
(config)#exit | Exit configure mode |
Validation
Check that the total SSH sessions possible is 10 even though SSH server session limit is configured as 12.
#show running-config ssh server
feature ssh vrf management
ssh server session-limit 12 vrf management
no feature ssh
#show running-config | grep max-session
max-session 10
Last modified date: 10/19/2023