简体   繁体   中英

how to connect a cloud google server via cygwin for windows users?

Well, that's should be easy, according to the document on: https://developers.google.com/compute/docs/gcutil/

BUT it's not that simple...

@Aviram Netanel

What if you have:

(gcloud.components.update) Unable to fetch https://dl.google.com/dl/cloudsdk/release/components-2.json

after ./install.sh command?

  1. install Cygwin (32 bit!) + the relevant libraries (packages): SSH, curl, python, g++, make, vim, etc'... as explained in this video tutorial (on minute 5)

  2. install Python ( set ENV variable: CLOUDSDK_PYTHON to ...)

  3. start cygwin and check if Python works: type python - you should see the version and the command line should change from $ to >>> (exit by ctrl+Z)

  4. run curl command:

    $ curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash

    • this didn't work for me. so I had to download & extract manually:

a.Download google-cloud-sdk.zip

b.Unzip the file by right-clicking on it and selecting Extract all.

c.copy the extracted library to: C:\\cygwin\\home\\

d.on the cygwin console type:

cd google-cloud-sdk

and then run the install.sh:

./install.sh

after done that, you can finally write the gcutil command given from google (on the VM instances table, under the "SSH" button)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM