关于“Networking 102”的评价

关于“Networking 102”的评价

3884 条评价

Nurettin Burak O. · 已于 over 5 years前审核

Aryo P. · 已于 over 5 years前审核

According to https://cloud.google.com/compute/docs/instances/connecting-advanced#bastion_host, After we remove the external IP from `privatenet-us-vm`, you must then do the following to be able to ssh to it from the bastion server: ``` # Gather info project_id=$(gcloud config list --format 'value(core.project)') user=$(gcloud auth list --filter status:ACTIVE --format 'value(account)') service_account=$(gcloud compute instances describe "$private_net"-us-vm \ --zone=us-central1-f \ --format json | grep -i -A3 "serviceAccounts" | grep -i "email" | cut -d\" -f4 | tr -d [:blank:]) # Grant the user the instanceAdmin.v1 role gcloud projects add-iam-policy-binding "$project_id" \ --member user:"$user" \ --role roles/compute.instanceAdmin.v1 # Stop the "$private_net"-bastion & "$private_net"-us-vm instances gcloud compute instances stop privatenet-bastion --zone=us-central1-c gcloud compute instances stop privatenet-us-vm --zone=us-central1-f # Allow the "$private_net"-bastion instance to read and write metadata gcloud compute instances set-service-account privatenet-bastion \ --zone=us-central1-c \ --service-account "$service_account" \ --scopes compute-rw ``` Then you can ssh into privatenet-bastion, however you must use the --internal-ip flag to ssh into privatenet-us-vm without an error like so: ``` gcloud compute ssh privatenet-us-vm --zone=us-central1-f --internal-ip ```

Tom B. · 已于 over 5 years前审核

Igor D. · 已于 over 5 years前审核

Mukul S. · 已于 over 5 years前审核

https://cloud.google.com/compute/docs/instances/connecting-advanced#bastion_host

Tom B. · 已于 over 5 years前审核

Zach G. · 已于 over 5 years前审核

GCP didin't work "An unknown error occured due to quota limits"

Rickard R. · 已于 over 5 years前审核

Cannot load firewall rules and so leaving lab.

James A. · 已于 over 5 years前审核

Vadzim D. · 已于 over 5 years前审核

Ayush A. · 已于 over 5 years前审核

Milosz P. · 已于 over 5 years前审核

SWAPNIL M. · 已于 over 5 years前审核

Adrian P. · 已于 over 5 years前审核

Saravanakumar P. · 已于 over 5 years前审核

https://cloud.google.com/compute/docs/instances/connecting-advanced#bastion_host

Tom B. · 已于 over 5 years前审核

Cody E. · 已于 over 5 years前审核

Jatindera W. · 已于 over 5 years前审核

Regina M. · 已于 over 5 years前审核

Needed more time to finish

Tom B. · 已于 over 5 years前审核

JACOB M. · 已于 over 5 years前审核

Needed more time to finish

Tom B. · 已于 over 5 years前审核

Andrey R. · 已于 over 5 years前审核

you could add use of traceroute to prove that the privatenet-us-vm paquets go through the bastion host.

Arnaud T. · 已于 over 5 years前审核

Really very interesting too

Sylwester M. · 已于 over 5 years前审核

我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。