A client application must be able to log in to each routing platform on which it establishes a connection with the JUNOScript server. The following instructions explain how to create a JUNOS login account for the application; for detailed information, see the chapter about configuring user access in the JUNOS System Basics Configuration Guide. Alternatively, you can skip this section and enable authentication through RADIUS or TACACS+; for instructions, see the chapter about system authentication in the JUNOS System Basics Configuration Guide.
To determine whether a JUNOS login account exists, enter CLI configuration mode on the routing platform and issue the following commands:
- [edit]
- user@host# edit system login
-
- [edit system login]
- user@host# show user account-name
If the appropriate account does not exist, perform the following steps:
- [edit system login]
- user@host# set user account-name class class-name
- [edit system login]
- user@host# edit user account-name authentication
![]() |
Note: A text-based password is not strictly necessary if the account is used to access the JUNOScript server through SSH with public/private key pairs for authentication, but we recommend that you create one anyway. The key pair alone is sufficient if the account is used only for SSH access, but a password is required if the account is also used for any other type of access (for login on the console, for example). The password is also used—the SSH server prompts for it—if key-based authentication is configured but fails. For information about creating a public/private key pair, see Prerequisites for SSH Connections. |
To enter a password as text, issue the following command. You are prompted for the password, which is encrypted before being stored.
- [edit system login user account-name authentication]
- user@host# set plain-text-password
- New password: password
- Retype new password: password
To store a password that you have previously created and hashed using Message Digest 5 (MD5) or Secure Hash Algorithm 1 (SHA-1), issue the following command:
- [edit system login user account-name authentication]
- user@host# set encrypted-password "password"
Issue the commit command.
- [edit system login user account-name authentication]
- user@host# top
- [edit]
- user@host# commit