Instructions on how to SSH into the Google Compute Engine Servers
- Download gcloud cli tools using instructions here
- in your terminal, run
gcloud init
and follow instructions - Pick cloud project to use: ex. miurban-datajournalism
- run
gcloud compute config-ssh
and create ssh key - run
gcloud compute os-login ssh-keys add --key-file=[key_file_location]
- key_file_location can be found by opening in vs code (in the top bar search for
>Remote-SSH: Open SSH Configuration File...
and then choose your config file). Once inside, find the configs underGoogle Compute Engine Section
. key_file_location will be what is listed afterIdentityFile
with.pub
added at the end.
- Lastly, back in the config file in vs code, under each Host section under
Google Compute Engine Section
, add another parameter calledUser
and add[cnet]_uchicago_edu