05-30-2024 06:54 AM
I have a switch that will only allow ssh access when I am pinging it from my computer. If there is no traffic it will disconnect when I put in my credentials for remote login.
05-30-2024 07:05 AM
Hello @1qazxsw2 ,
the switch will disconnect your ssh session because there is an exec timeout configured on the tty lines. The default value for the exec timeout is 10 minutes.
You can configure a longer timeout with the following commands:
SW_PROD#configure terminal
SW_PROD(config)#line vty 0
SW_PROD(config-line)#exec-timeout 60
which configures the timeout to 1 hour.
Hope this helps.
05-30-2024 07:06 AM
- Check logs (on the console) , when that happens ,
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide