Is there a way where I can prevent myself from being logged out of a cisco nexus switch/router (or any other cisco device) after a period of inactivity?
I get this message after being kicked off:
Inactive timeout reached, logging out.
I have the following in ~/.ssh/config (have tried specifying via command line flag as well:
Host *
ServerAliveInterval 120
Which does not seem to do the trick as I am still logged out after 10-15 mins. If there is a way to do this, I would need to it via something on the client-side, not in the cisco configuration.
You can set
exec-timeout
on the line you are using to configure it. The timeout is in minutes and0
means no timeout.Example: