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.
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
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)
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
I am facing the same issue, (gcloud.compute.ssh) could not parse resource when i try to connect.
what i did was,
copy below onto terminal
export ZONE=“us-west2-b” # budget: “us-west1-b”
export INSTANCE_TYPE=“n1-highmem-8” # budget: “n1-highmem-4”
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.