terminal CLI session timeout exec-timeout

exec-timeout

line vty 23 66
exec-timeout 0 0  no time-out

Logout and log back in

exec-timeout
Router#configure terminal
Router(config)#line vty 23 66
Router(config-line)#exec-timeout 2 30

2 Timeout value in minutes.
30 Timeout value in seconds.


line vty or line console

https://docs.ipinfusion.com/service-provider/index.html#page/OcNOS-SP/Sysman_Cmds/Basic_Commands.html#ww1057472