Configuring Inactivity Timeout Period, and Terminating Local and Remote Idle Session
Configuring Session Termination
Terminate the session after the security administrator specifies inactive timeout period.
- Set the idle timeout.[edit]security-administrator@host:fips# set system login class security-admin idle-timeout 2
- Configure the login access privileges.[edit]security-administrator@host:fips# set system login class security-admin permissions all
- Commit the configuration.[edit]security-administrator@host:fips# commit
commit complete
- Set the password.[edit]security-administrator@host:fips# set system login user NDcPPv2-user authentication plain-text-passwordNew password:Retype new password:
- Define login class.[edit]security-administrator@host:fips# set system login user NDcPPv2-user class security-admin
- Commit the configuration.[edit]security-administrator@host:fips# commit
commit complete
Sample Output for Local Administrative Session Termination
con host Trying a.b.c.d... 'autologin': unknown argument ('set ?' for help). Connected to device.example.com Escape character is '^]'. Type the hot key to suspend the connection: <CTRL>Z FreeBSD/amd64 (host) (ttyu0) login: NDcPPv2-user Password: Last login: Sun Jun 23 22:42:27 from 10.224.33.70 --- JUNOS 19.3R1.4 Kernel 64-bit JNPR-11.0-20190316.df99236_buil NDcPPv2-user@host> Warning: session will be closed in 1 minute if there is no activity Warning: session will be closed in 10 seconds if there is no activity Idle timeout exceeded: closing session FreeBSD/amd64 (host) (ttyu0)
Sample Output for Remote Administrative Session Termination
ssh NDcPPv2-user@host Password: Last login: Sun Jun 23 22:48:05 2019 --- JUNOS 19.3R1.4 Kernel 64-bit JNPR-11.0-20190316.df99236_buil NDcPPv2-user@host> exit Connection to host closed. ssh NDcPPv2-user@host Password: Last login: Sun Jun 23 22:50:50 2019 from 10.224.33.70 --- JUNOS 19.3R2.6 Kernel 64-bit JNPR-11.0-20190316.df99236_buil NDcPPv2-user@host> Warning: session will be closed in 1 minute if there is no activity Warning: session will be closed in 10 seconds if there is no activity Idle timeout exceeded: closing session Connection to host closed.
Sample Output for User Initiated Termination
ssh NDcPPv2-user@host Password: Last login: Sun Jun 23 22:48:05 2019 --- JUNOS 19.3R1.4 Kernel 64-bit JNPR-11.0-20190316.df99236_buil NDcPPv2-user@host> exit Connection to host closed.