Practice Test 3 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
Your application servers are deployed in private subnet and you connect to an application instance using a bastion host, you connect to the bastion host using Console Shell and then ssh to the respective application instance. Unfortunately, Cloud Shell is taking a lot of time to respond and you manager wants you to ssh to the instance to fix an application specific configuration. What command would you use to SSH into the server from public end?
A. gcloud connect ssh username@application-instance
B. gcloud compute ssh username@bastion-host
C. gsutil connect ssh username@bastion-host
D. gsutil compute ssh username@application-server
Explanation:
Answer B
B is correct. The correct syntax is gcloud compute ssh + [USERNAME]+@[SERVERNAME]. From public end, you can only connect to bastion host, hence you need to connect to bastion host first and then connect to application instance.
A, C and D are incorrect: Incorrect commands
Link:
https://cloud.google.com/compute/docs/instances/connecting-to-instance
Comments are closed, but trackbacks and pingbacks are open.