SSH Into PlatformX Server In GCP

Describes the steps necessary to ssh into a PlatfromX server in GCP via OS Login and the IaP

  1. Install the gcloud cli.
  2. From the Terminal in OSX or from Powershell in Windows initialize the gcloud cli.
    1.  gcloud init
    2. During the login process the gcloud cli opens up a new browser window. Use your NetID and password for authenticating with Google.
    3. When prompted, select the project name given to you by the PlatformX team and select the us-central1-a zone.
  3. PlatformX uses an Identity Aware Proxy (IaP) for accessing servers on private networks. The IaP requires the name of the server before logging in. PlatformX's automatic OS upgrade causes the server names to change slightly each night. Use the Managed Instance Group CLI command to find the name of the server. The PlatformX team will provide you with the name of the Managed Instance Group.
    1. gcloud compute instance-groups managed list-instances <Name_of_Managed_Instance_Group>

    2. The command returns the name of a single server managed by the instance group. Use this name in step 4.

  4. SSH into the server
    1. gcloud compute ssh <Name_of_Server>

Keywords:SSH GCP PlatformX   Doc ID:112926
Owner:Heath S.Group:SMPH Research Informatics
Created:2021-08-10 09:23 CDTUpdated:2022-05-13 16:54 CDT
Sites:SMPH Research Informatics
Feedback:  0   0