cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1979
Views
0
Helpful
3
Replies

VTY Session Timeout

avilt
Level 3
Level 3

I have defined VTY 0 15 timeout, my SSH session is on MGMT (out of band) interface and vty timeout is not working. How do I enable it for MGMT as well?

3 Replies 3

kubn2
Level 1
Level 1

Hey,

 

In general configuration use:

ip ssh time-out XXX

instead of XXX put time in seconds, you can additionally use:

ip ssh authentication-retries 5

to limit tries to 5 or any other number that you like.

 

I have the following commands but no ssh session never gets disconnected.

 

SW01#show running-config | include ssh
ip ssh maxstartups 10
ip ssh time-out 30
ip ssh authentication-retries 5
ip ssh logging events
ip ssh version 2

 

-----

Also defined following command on MGMT but no effect.

SW01(config-if)#timeout absolute 60


 


transport input ssh

Hello,

 

not sure if I missed something, but how did you configure the VTY timeout ?

 

line vty 0 4

exec-timeout 1

 

will disconnect your VTY session after 1 minute of inactivity (regardless of whether you are connected through SSH or Telnet)...

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: