Your organization blocks all outbound traffic on TCP 22, and Cloud Shell is disabled by policy. You must urgently inspect logs on a Linux Compute Engine VM from your corporate laptop without installing any additional software or requesting firewall changes. Which approach will let you open an interactive shell on the VM right away?
In the Google Cloud console, locate the VM and click the SSH link to open a browser-based terminal session.
Generate a one-time RDP certificate for the VM and connect with a Remote Desktop client over TCP 3389.
Enable interactive serial console on the VM and connect to it from your laptop over TCP 22.
Install Cloud SDK locally and run gcloud compute ssh --tunnel-through-iap <instance> to create an HTTPS-based SSH tunnel.
Clicking the SSH button next to the instance on the VM instances page launches a browser-based terminal that proxies the SSH session through Identity-Aware Proxy over HTTPS (TCP 443). Because the connection originates from the browser to Google's back end using port 443, no outbound TCP 22 traffic leaves the corporate network and no local tools need to be installed.
Running gcloud compute ssh --tunnel-through-iap would also avoid port 22, but it requires the Cloud SDK, which the scenario forbids. Serial console access is meant for low-level troubleshooting and still requires enabling it and using the Google Cloud CLI or API. Generating an RDP credential is irrelevant to a Linux VM and still would not satisfy the port 22 restriction for SSH.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Identity-Aware Proxy (IAP) in Google Cloud?
Open an interactive chat with Bash
How does the browser-based SSH work in Google Cloud?
Open an interactive chat with Bash
Why wouldn't the gcloud compute ssh --tunnel-through-iap command work in this scenario?
Open an interactive chat with Bash
What is Identity-Aware Proxy (IAP) in the context of Google Cloud?
Open an interactive chat with Bash
How does the browser-based SSH terminal work in Google Cloud Console?
Open an interactive chat with Bash
Why is the gcloud CLI unable to be used in this scenario?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .