Inactivity Timeout Period Configuration, and Local and Remote Idle Session Termination
Inactivity timeout period configuration refers to the settings that determine how long your device wait while detecting no user activity before automatically log out and lock the session. This is a security feature.
Configure Session Termination
Terminate the session after the security administrator specifies inactive timeout period. The inactive timeout period applies to both local console sessions as well as the remote SSH sessions.
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: NDcPPv3-user
Password:
Last login: Sun Nov 23 22:42:27 from 10.224.33.70
--- JUNOS 24.4R2.9 Kernel 64-bit JNPR-15.0-20250529.3e76435_buil
NDcPPv3-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)
For password authentication (both remote and local), login interacts with a user to request a username and password to establish and verify the user’s identity. The username entered by the administrator at the username prompt is reflected to the screen, but no feedback to screen is provided while the entry made by the administrator at the password prompt until the Enter key is pressed, following which either access to the CLI is provided (correct password) or the password prompt is presented again (incorrect password). This is the default behavior and does not require any configuration.
Sample Output for Remote Administrative Session Termination
ssh NDcPPv3-user@host Password: Last login: Sun Nov 23 22:48:05 2019 --- JUNOS 24.4R2.9 Kernel 64-bit JNPR-15.0-20250529.3e76435_buil NDcPPv3-user@host> exit Connection to host closed. ssh NDcPPv3-user@host Password: Last login: Sun Nov 23 22:50:50 2019 from 10.224.33.70 --- JUNOS 24.4R2.9 Kernel 64-bit JNPR-15.0-20250529.3e76435_buil NDcPPv3-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
Local console session and the remote SSH session users can use this method to terminate the session.
FreeBSD/amd64 (host) (ttyu0) login: root Password: Last login: Thu Nov 20 22:33:24 on ttyu0 --- JUNOS 24.4R2.9 Kernel 64-bit JNPR-15.0-20250529.3e76435_buil root@host:~ # exit logout
ssh root@host (root@host) Password: Last login: Thu Nov 20 22:34:29 2025 --- JUNOS 24.4R2.9 Kernel 64-bit JNPR-15.0-20250529.3e76435_buil root@host:~ # exit logout Connection to host closed.