Description

In this article, we learn how to log in to an SRX device by using the root and non-root user credentials.

 

Solution

 

Logging In for the First Time

When you power on an SRX Series device for the first time, it is ready to perform a basic configuration:
  1. Initially, you can log in to the device as the root user with no password:

Amnesiac (ttyd0)
login: root
  1. After you log in to the device as the root user, the shell prompt (%) appears:

root@%
  1. 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.

 

Logging In as Non-Root Users

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).

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.

 

Logging In as the Root User

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:

  1. At the login prompt, enter root.

Amnesiac (ttyu0)

login: root
Password:

--- JUNOS 17.3R1.10 built 2017-08-23 06:40:27 UTC
root% 
  1. Enter cli at the prompt, and then the CLI changes to operational mode.

root% cli
root>

Note: After logging out of the CLI, be sure to exit the shell to prevent unauthorized access to your device.

Modification History

2023-05-12: Article reviewed for accuracy; minor non-technical changes made

Related Information

For other topics, go to the SRX Getting Started main page.

See KB15694 - SRX Getting Started - Configuration Examples & Troubleshooting (JumpStation) [juniper.net] for more information.