Description

This KB describes the procedure for configuring a timeout value for a super-user.

Solution

Step1: Define a new login class

#set system login class <class-name>

 

Step2 : Match the login class to the super-user

#set system login user <user-name> class <class-name> authentication plain-text-password <Password>

 

Step3: Add a time out value for the login class

#set system login class <class-name> <timeout value>

 

Here is the sample:

 

From Console:

{master:0}[edit]

root@jtac-ex3400# show system 

login {

  idle-timeout 1;

  class super-user-local { * class name is super-user-local

    idle-timeout 1;  

    permissions all;

  }

  user Juniper1 { * user name is Juniper1

    uid 2001;

    class super-user-local; 

    authentication {

      encrypted-password "$6$NwjS4Io/$MCXqfHrBV2tFOsgk/Sw/9SnJjDFPLwRdUji49ZEWHnMLmodSgqjO.ZTfyjfPSGNX3Xjb/"; ## SECRET-DATA

    }

  }

}

services {

  ssh;                 

}

 

From ssh: 1 minute later,

'Idle timeout exceeded: closing session'

 

Modification History

2023-12-14 : Article Created
2023-12-18 : Ver.1