Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection via Cloud Identity-Aware Proxy Failed

enter image description hereI am getting the following disconnection issues in the GCP Jupiter notebook.

error code: 4010 and error code: 1006

Can you please suggest some solution?

enter image description here

like image 284
Sahil Kamboj Avatar asked Jun 17 '26 02:06

Sahil Kamboj


1 Answers

As part of the IAP configuration steps, you should create a firewall rule that allows ingress traffic to the SSH port from the IAP address range:

GCP Console => VPC network => Firewall rules => Create Firewall Rule
  Name:     allow-ingress-from-iap
  Direction of traffic:     Ingress
  Target:   All instances in the network 
  Source filter:    IP ranges 
  Source IP ranges:     35.235.240.0/20 
  Protocols and ports:  select TCP and enter 22 to allow SSH

Identity-Aware Proxy > Doc > Setting up IAP for Compute Engine

The error 1006 appears in the GCP Console UI after 1 hour of inactivity of the SSH session via IAP with VMs with Internal IP only, and this is a session timeout on the Google side.

like image 84
mebius99 Avatar answered Jun 20 '26 03:06

mebius99



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!