Pivotal Knowledge Base

Follow

How to SSH to BOSH Director in a GCP environment

Environment

Google Cloud Platform (GCP)

PCF Operations Manager UI

Purpose

This article explains how to SSH to the BOSH Director.

Prerequisites:

  • Operations Manager Director Job should be running. 
  • Use the gcloud SDK or CLI and SSH to the Operations Manager Director (BOSH Director) VM running on the GCP environment. 
  • Create the Ops Manager Director VM Instance in your GCP environment.

Procedure

1. Go to https://cloud.google.com/sdk/docs/quickstart-macos and install gcloud SDK and CLI.

2. Initialize Google Cloud CLI, using a user account with Owner or Editor or Viewer permissions to access the project. Ensure that the Google Cloud CLI can login to the project, for example:
# The following successfully opens a browser to the GCP console of your project:

 $ gcloud auth login 

3. Browse the GCP web console. Go to Compute Engine and to VM Instances. Click your VM instance name to expand.

4. Under Remote access, click the SSH dropdown.  

Example:

Screen_Shot_2018-04-12_at_3.45.36_PM.png

5. Select "View gcloud command"

Example:

Screen_Shot_2018-04-12_at_3.46.06_PM.png

6. Use that command from your terminal like below:

$ gcloud compute --project "your-project-id" ssh --zone "your-zone-id" "name-of-your-vm" 

Comments

Powered by Zendesk