Setting the session timeout parameter in a cisco router or switch is an easy task that will make your day to day work easy.
How to set the session timeout:
log on to the router and type:
router#configure t
router(config)#line vty 0 4
router(config-line)#session-timeout 10 —- 10 is the amount of minutes we want to configure before timeout.
router(config-line)#exec-timeout 0 — this is when we log in exec mode ( 0 is never)
router(config-line)#end – exit the config line mode
router#copy run start
router#copy run start