(gcloud.compute.ssh) could not parse resource []

Thanks that worked brilliantly!

for the other newbies, heres a more detailed description for Windows users who installed Ubuntu:
Open ubuntu terminal
run vim ~/.bash_profile
inside the new terminal, copy in the above exports with your names and types.
Press Escape
type: :wq and press Enter. this saves the file and returns you to the ubuntu terminal
run source ~/.bash_profile

start up your instance from the console and re-run gcloud compute ssh

1 Like

i am running up against the same issue as described in this thread. I followed your advice, but when i run the source ~/.bash_profile command here is the message:

roberteubanks@roberts-mbp ~ % source ~/.bash_profile

/Users/roberteubanks/exec -l /bin/bash/google-cloud-sdk/path.bash.inc:3: = not found

Any guidance on what is going on? How can I fix this issue?

Im on windows 10 with ubuntu terminal

I find I always have to go

Start ubuntu terminal

gcloud auth login

(go start my instance in gcloud)

export ZONE=“us-west1-b”
export INSTANCE_NAME=“my-fastai-instance”
gcloud compute ssh --zone=$ZONE jupyter@$INSTANCE_NAME – -L 8080:localhost:8080

then is asks me for my SSH code and all is well, I can work on 8080:localhost:8080

1 Like

I am facing the same issue, (gcloud.compute.ssh) could not parse resource[] when i try to connect.

what i did was,

  1. copy below onto terminal
    export ZONE=“us-west2-b” # budget: “us-west1-b”
    export INSTANCE_NAME=“my-fastai-instance”
    export INSTANCE_TYPE=“n1-highmem-8” # budget: “n1-highmem-4”

  2. type vim ~/.bash_profile in my terminal.

it seem like no editor was opened. (print below)

Any one face the same problem? Advice will be highly appreciated.