SSH or Telnet CLI sessions may stay on the router for extended period of time, with no idle timeout enforced:re0> show system usersre0:--------------------------------------------------------------------------6:53PM up 9 days, 46 min, 3 users, load averages: 0.59, 0.63, 0.63USER TTY FROM LOGIN@ IDLE WHATxyz pts/1 10.141.241.10 17:32 30:08 -cli xyz pts/2 10.141.241.10 18:30 1.00s -clixyz pts/3 10.141.241.10 16:09 1:53m -cli And, attempts to configure an idle timeout for any predefined class results in creation of a "local" class:lab@RE0-MX960# set system login class super-user idle-timeout 30 permissions all warning: 'super-user' is a predefined class name; changing to 'super-user-local'[edit]
Juniper defined classes:operatorread-onlysuperuser or super-userunauthorizedDo not support an idle timeout. For example, user 'lab':set system login user lab uid 2000set system login user lab class super-userWhen 'show cli' is run, it reports:lab@RE0-MX960> show cli CLI complete-on-space set to onCLI idle-timeout disabledCLI restart-on-upgrade set to onCLI screen-length set to 64CLI screen-width set to 183CLI terminal is 'xterm-256color'CLI is operating in enhanced modeCLI timestamp disabledCLI working directory is '/var/home/lab'However, user 'test' tied to the super-user-local group:set system login class super-user-local idle-timeout 30set system login class super-user-local permissions allset system login user test uid 2005set system login user test class super-user-localWill have the idle timeout attached and enforced:test@RE0-MX960> show cli CLI complete-on-space set to onCLI idle-timeout set to 30 minutesCLI restart-on-upgrade set to onCLI screen-length set to 64CLI screen-width set to 183CLI terminal is 'xterm-256color'CLI is operating in enhanced modeCLI timestamp disabledCLI working directory is '/var/home/test'
You can configure the super-user-local class to grant all permissions, and the read-only-local class with view-only permissions
> For super-user-local: set system login class super-user-local permissions all
> For read-only-local: set system login class read-only-local permissions view
You can run the above commands to provide the corresponding permissions.