0

We are trying to access our GCP remote instance, it is ubuntu 16.04.

It shows error code 1006, as shown in the image. We tried solution mentioned here but we are still getting the same error.

While accessing it through putty it shows:

Network error: Connection time out

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
Stack User
  • 19
  • 1
  • 5
  • I'd suggest that we start wading through this page: https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh – Kolban May 23 '22 at 15:50
  • @ Stack User, Is your session still active? You need to be active in your session, if your session is timing out you could face this issue. – Leo May 24 '22 at 18:56

1 Answers1

0

Your custom SSH firewall rule doesn't allow traffic from Google services. SSH connections from the Google Cloud console are refused if custom firewall rules do not allow connections from IAP or Google's IP address range.

To resolve this issue, do one of the following:

If you use Identity-Aware Proxy (IAP) for TCP forwarding, update your custom firewall rule to accept traffic from IAP, then check your IAM permissions.

  1. Update your custom firewall rule to allow traffic from 35.235.240.0/20, the IP address range that IAP uses for TCP forwarding. For more information, see Create a firewall rule.

  2. Grant permissions to use IAP TCP forwarding, if you haven't already done so.

If you don't use IAP update your custom firewall rule to allow traffic from Google's entire IP range.

  1. Update your custom firewall rule to allow traffic from Google IP addresses. For more information, see Updating firewall rules.

As @Kolban suggested you can check this documentation for troubleshooting SSH for additional information.

かいぜん
  • 327
  • 2
  • 9