-
Enable SSH for Scripting Access.
-
Create a Locally Authenticated LiveAssurance User with Administrator Rights.
How to Enable SSH for Scripting Access
First, verify SSH is configured via the CLI by entering the following command: “show configuration system services”
ssh {
protocol-version v2;
}configuration
mode:set system services ssh protocol-versino v2
commit-
-
Click Edit button on the right upper corner
-
Check Enable SSH box (if not already checked)
-
Click OK
Select commit from Actions pull down menu to activate the configuration.
How to Create a User with Administrator Rights
A locally authenticated User account with administrative privileges is required for LiveAssurance to access SRX devices. Please note that the “root” account cannot be used for this purpose.
Creating the User Account via the CLI
set system login user indeni-user class super-user
set system login user indeni-user authentication plain-text-password
New password: ********
Retype new password ********
commitshow configuration system loginuser indeni-user {
uid XXXX;
class super-user;
authentication {
encrypted-password “XXXXXXXXXXX”; ## SECRET-DATA
}
}Creating a User Account via J-Web
-
Select
-
Click Edit on the right upper corner:
-
Click Add button to add a new account.
-
Ensure that the Login class is “super-user”.
-
Click OK to add the new account:
-
Verify the account appears as below:
-
Select Commit from Actions pull down menu to activate the configuration.
-
Test the newly created account from a remote system, then enter the following command:
ssh indeni-admin@srx-jfwBelow is the expected output:UNAUTHORIZED USE OF THIS SYSTEM IS STRICTLY PROHIBITED! Password: ********** — JUNOS 12.1X46-D65.4 built 2016-12-30 01:34:30 UTC indeni-admin@SRX-JFW>