SSH Into PlatformX Server In GCP
Describes the steps necessary to ssh into a PlatfromX server in GCP via OS Login and the IaP
- Install the gcloud cli.
- From the Terminal in OSX or from Powershell in Windows initialize the gcloud cli.
- gcloud init
- During the login process the gcloud cli opens up a new browser window. Use your NetID and password for authenticating with Google.
- When prompted, select the project name given to you by the PlatformX team and select the us-central1-a zone.
- 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.
gcloud compute instance-groups managed list-instances <Name_of_Managed_Instance_Group>
The command returns the name of a single server managed by the instance group. Use this name in step 4.
- SSH into the server
gcloud compute ssh <Name_of_Server>