Description

Is it possible to configure console idle timeout for root user on Junos?

Symptoms

These two commands did not achieve the goal:

 

  • > set cli idle-timeout 10 logs out the root user from cli to shell mode, but you can easily return to operational mode.
  • # set system login idle-timeout 10 works for all users except for root console connections.

Solution

The thing is that logging out the root user from the shell on a console connection seems to be outside of the Junos CLI capabilities because it's a FreeBSD layer thing. So, as of now, it is not possible.

 

These are the Junos alternatives depending on the security requirements from your organization:

 

Modification History

2024-05-27 : Article Created