Management users are not disconnected from the Telnet/SSH session even after 1 hour of idle time.
A management user is idle for more than one hour and is not disconnected. They user is still reported via the command: show system users . Since this is a TCP session and the device has a default timeout of 30 min, why do I still see the user connected?
show system users
The device never automatically disconnects the management users; this is the default behavior. This is because the idle timeout is disabled by default. To validate the current setting, use the following command :
root@router>show cli CLI complete-on-space set to on CLI idle-timeout disabled
root@router>show cli CLI complete-on-space set to on
CLI idle-timeout disabled
If you want the users to disconnect after some time, configure the idle timeout according to your requirements using the following command:
root@router> set cli idle-timeout ? Possible completions: <timeout> Maximum idle time (0..100000 minutes)
show cli
root@router> set cli idle-timeout 60 Idle timeout set to 60 minutes root@router> show cli CLI complete-on-space set to on CLI idle-timeout set to 60 minutes root@router% exit
root@router> run show cli CLI complete-on-space set to on CLI idle-timeout disabled
[edit system login] root# show class test { idle-timeout 1; permissions all; } user user { uid 2006; class test; authentication { encrypted-password "$ABC123"; ## SECRET-DATA } }
user@juniper> show cli CLI complete-on-space set to on CLI idle-timeout set to 1 minute