- Install gcloud on your local machine.
- Run
gcloud init
. This will guide you through setting up a GCP project (i.e. vof-tracker) on your local machine. - Run
gcloud compute instances list
. This shows the instances running on the project you setup above. Please note that only those machines named -jumpbox allow direct SSH access from your machine. It is through them that you can access the internal network virtual machines. - Run
gcloud compute ssh <firstname>_<lastname>@<machine-name> --zone europe-west1-b
. Swap with the jump box whose environment you want to access via SSH. This will log you into the jumpbox and it is from here that you can access the virtual machines running the VOF app. _ refers to the names in your Andela email. - Run
gcloud compute instances list
again to see the available virtual machines. - Run
gcloud compute ssh <firstname>_<lastname>@<machine-name>
--zone europe-west1-b` but this time use one of the other virtual machines list by the above command. Note that the jumping box can only access the machines whose environment name it also bears. - If it is the first time the your account is accessing the server, SSH keys will be generated and a passphrase requested. Just press enter when prompted for the passphrase.
- Once logged in, the prompt will display your name however, to do anything with the VOF application you need to login as the a user called
vof
. - Run
sudo su vof
to change the account to thevof
user. - Run
cd ~
to go to the home directory of the vof user. - Run
cd app
. This is the folder that contains the VOF application and where normal rails, rake and ruby commands affecting the application can be run.
- Log into Google Console
- Select the appropriate project you want to view in the console i.e. vof-tracker.
- Click
Compute Engine
link from the menu. - Click the SSH button on the jumpbox machine and a SSH session will start in a separate tab. The SSH button is encircled in red below.
- When the session is ready follow instructions 5 - 11 above.
NOTE: Only people that have IAM roles setup on the particular GCP VOF project can gain SSH access to any of the VMs including the jumpbox