In this article, we learn how to log in to an SRX device by using the root and non-root user credentials.
Logging in for the first time
Logging in as non-root users
Logging in as root users
Initially, you can log in to the device as the root user with no password:
Amnesiac (ttyd0) login: root
After you log in to the device as the root user, the shell prompt (%) appears:
root@%
Enter cli at the prompt to start the operational mode:
root@% cli root>
The right angle bracket (>) shows that you are in operational mode.
You need to set a password for the root user after the first login. The root user (also referred to as the superuser) has unrestricted access and full permissions within the system. If you do not set the root password, the system will not allow you to commit any configurations that you make. For more information, see Configure the Root Password.
Non-root users automatically enter the CLI operational mode after logging in to the SRX Series device.
At the login prompt, enter the username (in this example, user) and the password (does not appear when typing).
user
Amnesiac (ttyu0) login: user Password: --- JUNOS 17.3R1.10 built 2017-08-23 06:40:27 UTC user@host>
After a successful login, the prompt changes to user@host>, where user refers to the name of the user that is logged in, and host is the hostname of the device.
When you log in to the device as the root user, the CLI starts from the shell.
To log in as the root user, perform the following:
At the login prompt, enter root.
root
Amnesiac (ttyu0) login: root Password: --- JUNOS 17.3R1.10 built 2017-08-23 06:40:27 UTC root%
Enter cli at the prompt, and then the CLI changes to operational mode.
cli
root% cli root>
Note: After logging out of the CLI, be sure to exit the shell to prevent unauthorized access to your device.
2023-05-12: Article reviewed for accuracy; minor non-technical changes made
See KB15694 - SRX Getting Started - Configuration Examples & Troubleshooting (JumpStation) [juniper.net] for more information.