title: How to resolve inability to ssh into google cloud instance when the gcloud compute ssh command becomes stuck/hangs without error message?
body: <p>I'm trying to SSH into a Google Cloud Platform instance from an internal ip. When I run <code>gcloud compute ssh instance-name --internal-ip</code>, gcloud is able to find the zone automatically but hangs indefinitely without an error message. I have ran <code>gcloud --verbosity=debug compute ssh instance-name --internal-ip</code> to gain insight and see the program gets stuck at </p>
  
  <pre><code>DEBUG: Executing command: [u'/usr/bin/ssh', u'-T', u'-i', u'/home/edmond/.ssh/google_compute_engine', u'-o', u'CheckHostIP=no'...
  </code></pre>
  
  <p>Actions I have taken to try to resolve the issue:</p>
  
  <ol>
  <li>Reinstall Google Cloud Platform SDK.</li>
  <li>Run <code>gcloud compute config-ssh --remove</code> and then <code>gcloud compute config-ssh</code> to reset ssh keys.</li>
  <li>Manually remove all google related files from <code>~/.ssh/</code> and then running <code>gcloud compute config-ssh</code>.</li>
  <li>Adding my public ssh key in google cloud platform website at compute > metadata > ssh keys for the correct project.</li>
  </ol>
  
  <p>Here are pieces of information which may be relevant:</p>
  
  <ol>
  <li>I used to be able to ssh into instances without a problem and then one day this issue arised.</li>
  <li>I am using Windows Subsystem for Linux (WSL) version 2 on Windows 10.</li>
  <li>I am connected to a VPN which makes my IP internal which is why I use <code>--internal-ip</code> flag. There are no external IPs. That's not an option.</li>
  <li>I get the same issue in the Google Cloud Platform website when I use the web-based console which means the issue is not isolated to only my machine.</li>
  </ol>