Currently, our Cisco router appears to end your SSH session after 10 minutes or so of inactivity. Is there an easy way to change this?
- posted
17 years ago
Currently, our Cisco router appears to end your SSH session after 10 minutes or so of inactivity. Is there an easy way to change this?
This is the standard vty session inactivity timeout kicking in.
" ip ssh
To configure Secure Shell (SSH) control parameters on your router, use the ip ssh global configuration command. To restore the default value, use the no form of this command.
ip ssh {[timeout seconds]} | [authentication-retries integer]}
no ip ssh {[timeout seconds]} | [authentication-retries integer]} Syntax Description
timeout
(Optional) The time interval that the router waits for the SSH client to respond.
This setting applies to the SSH negotiation phase. Once the EXEC session starts, the standard timeouts configured for the vty apply. By default, there are 5 vtys defined (0-4), therefore 5 terminal sessions are possible. After the SSH executes a shell, the vty timeout starts. The vty timeout defaults to 10 minutes"
line vty 0 15 exec-timeout MM SS
Where MM is timeout in minutes and SS is seconds (or 0 if blank).
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.