Step 2: Up and Running
The first thing you'll want to do is to access the CLI using SSH and set the root administrator password. This allows other users to access the vSRX VM.
Access the vSRX CLI
Log in to the vSRX instance from the command line using the private SSH key you generated in Generate SSH Keys.
If you are using Linux or MAC OS: In your SSH tool, connect to the External IP for the management interface, and specify the path to your private key.
If you are using Windows: Open a terminal emulator installed on your laptop, such as PuTTY or SecureCRT and connect to the vSRX instance.
Go to Session and enter the external IP address for the vSRX instance in the Host name (or IP address) field. This is the same IP address that you noted in step 10 of Deploy vSRX on Google Cloud Platform.
Navigate to Connections>SSH>Auth.
In the Private key file for authentication field, click Browse to select your private key in .ppk format stored in your local system.
Click Open to connect to your vSRX instance.
Set a Password for the Root User
- Log in as gcp-user. There is no password.
login as: gcp-user
- Enter configuration mode.
Entering configuration mode
- Add a password to the root administration user account.
Enter a plain text password.
gcp-user# set system root-authentication plain-text-password
New password: Retype new password:
- (Optional) Enable J-Web access.
gcp-user# set system services web-management http
gcp-user# set system services web-management https
Use the GCP firewall rules to limit the management access to the specific IP addresses on a vSRX instance to access J-Web on the public IP address.
You must create the GCP firewall rules for the management VPC network to allow the protocols and ports necessary for managing the vSRX instance. To do that, in GCP console, navigate to VPC network > Firewall rules and start creating rules.
- Commit the configuration.
You can now log in to the vSRX instance with the CLI and continue customizing the configuration. See Configuring vSRX Using the CLI.
Now that you’ve configured user accounts, check out the next step to keep going with some useful documentation links.