Redes 102 avaliações

Redes 102 avaliações

3884 avaliações

Nurettin Burak O. · Revisado há over 5 years

Aryo P. · Revisado há 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. · Revisado há over 5 years

Igor D. · Revisado há over 5 years

Mukul S. · Revisado há over 5 years

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

Tom B. · Revisado há over 5 years

Zach G. · Revisado há over 5 years

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

Rickard R. · Revisado há over 5 years

Cannot load firewall rules and so leaving lab.

James A. · Revisado há over 5 years

Vadzim D. · Revisado há over 5 years

Ayush A. · Revisado há over 5 years

Milosz P. · Revisado há over 5 years

SWAPNIL M. · Revisado há over 5 years

Adrian P. · Revisado há over 5 years

Saravanakumar P. · Revisado há over 5 years

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

Tom B. · Revisado há over 5 years

Cody E. · Revisado há over 5 years

Jatindera W. · Revisado há over 5 years

Regina M. · Revisado há over 5 years

Needed more time to finish

Tom B. · Revisado há over 5 years

JACOB M. · Revisado há over 5 years

Needed more time to finish

Tom B. · Revisado há over 5 years

Andrey R. · Revisado há over 5 years

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

Arnaud T. · Revisado há over 5 years

Really very interesting too

Sylwester M. · Revisado há over 5 years

Não garantimos que as avaliações publicadas sejam de consumidores que compraram ou usaram os produtos. As avaliações não são verificadas pelo Google.