1.2.4 Ensure Exec Timeout for Console Sessions is set for less than 10

Information

Verify device is configured to automatically disconnect console sessions after a defined maximum session time, set in minutes.

This prevents unauthorized users from misusing abandoned sessions. For example, if the network administrator disconnects leaving a console session open, that session will remain open (in the same state and privilege level) for the next person who connects a console cable to the device.

A shorter timeout is usually desired, but this can be extended for longer-running operations such as debug sessions or NX-OS updates.

This is not an idle timer, it is the maximum length of a session. This is a key difference that should be taken into account when determining the best value for your organization and your work habits.

Solution

switch(config)# line console
switch(config)# exec-timeout 10

See Also

https://workbench.cisecurity.org/benchmarks/28649