(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