Logging Out

Whenever you finish working on the device, don't just walk away from your terminal session. Log out! This prevents anyone from randomly walking up to your terminal or PC and accessing the device. If you're working in operational command mode, you can log out with a simple exit command:

user@junos-device> exit
logout
Connection closed by foreign host.
user@remote-server#

Because you can log out only from operational command mode, when working in configuration mode, you must finish your configuration session and return to operational mode:

[edit system]
user@junos-device# exit configuration-mode
Exiting configuration mode
user@junos-device> exit
logout
Connection closed by foreign host.
user@remote-server#

Get Junos® OS For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.