title: SSH connection refused for Google App Engine VM instance
body: <p>I have deployed a flask application on a google app engine VM instance. Everything was going fine, I was editing my code locally, then deploying and debugging by looking at the logs, but after my last deployment, I am seeing the following error when I try to open the app in a browser:</p>
  <blockquote>
  <p>Error: Server Error</p>
  <p>The server encountered a temporary error and could not complete your request.</p>
  <p>Please try again in 30 seconds.</p>
  </blockquote>
  <p>Also, I am now unable to ssh into my App engine VM instance. Whenever I try to ssh, I get the following error:</p>
  <blockquote>
  <p>port 22: Connection refused</p>
  </blockquote>
  <p>(I was able to ssh into this VM earlier).</p>
  <p>Now, I have a VPC network, which has the default firewall rules for allowing ssh ports. There is a section in the cloud platform dashboard where I can create firewall rules for App engine, but it is only for allowing IP addresses, and not ports (regardless, I have added my IP address in this firewall rule).</p>
  <p>I also get the same error when I try to SSH through the web cloud platform  dashboard.</p>
  <p>Most of the related pages on StackOverflow I found about this error are
  people not being able to SSH into <b>compute engine</b> VMs. I'm  stuck and have no idea what to do to be able to SSH into my <b>App Engine</b> VM.</p>
  <p>I am also not seeing any logs when I use the &quot;gcloud app logs read&quot; command.</p>
  <p>Edit: Following are my App Engine firewall rules :</p>
  <p><a href="https://i.stack.imgur.com/UHhQc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UHhQc.png" alt="enter image description here" /></a></p>
  <p>Following are the firewall rules for my VPC network:</p>
  <p><a href="https://i.stack.imgur.com/6wa30.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6wa30.png" alt="enter image description here" /></a></p>