Use the exec-timeout in line configuration mode. console(config)#line sshconsole(config-line)#exec-timeout 20    
Is there a way to increase the timeout of serial console or SSH sessions to the 6248? I can't find any setting for this in the documentation. I'm using local user accounts. Thanks.
PC628 - How to increase console or SSH timeout