Не удалось подключиться по SSH к моему экземпляру виртуальной машины Compute Engine в Google Cloud

Я пытаюсь подключиться по SSH к экземпляру виртуальной машины вычислительного движка в Google Cloud.

Я следую инструкциям по настройке регионального внешнего балансировщика нагрузки HTTP(S) с серверными частями группы экземпляров виртуальных машин.

Я создал правило брандмауэра, разрешающее SSH-трафик.

gcloud compute firewall-rules describe fw-allow-sshвозвращает:

      allowed:
- IPProtocol: tcp
  ports:
  - '22'
creationTimestamp: '2022-09-13T07:55:49.187-07:00'
description: ''
direction: INGRESS
disabled: false
id: '3158638846670612250'
kind: compute#firewall
logConfig:
  enable: false
name: fw-allow-ssh
network: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/networks/default
priority: 1000
selfLink: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/firewalls/fw-allow-ssh
sourceRanges:
- 0.0.0.0/0
targetTags:
- load-balanced-backend

Кроме того, у меня есть еще два правила брандмауэра:fw-allow-health-checkиfw-allow-proxies.

gcloud compute firewall-rules describe fw-allow-health-checkвозвращает:

      allowed:
- IPProtocol: tcp
  ports:
  - '80'
creationTimestamp: '2022-09-12T21:29:49.688-07:00'
description: ''
direction: INGRESS
disabled: false
id: '2007525931317311954'
kind: compute#firewall
logConfig:
  enable: false
name: fw-allow-health-check
network: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/networks/lb-network
priority: 1000
selfLink: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/firewalls/fw-allow-health-check
sourceRanges:
- 130.211.0.0/22
- 35.191.0.0/16
targetTags:
- load-balanced-backend

gcloud compute firewall-rules describe fw-allow-proxiesвозвращает:

      allowed:
- IPProtocol: tcp
  ports:
  - '80'
  - '443'
  - '8080'
creationTimestamp: '2022-09-12T21:33:19.582-07:00'
description: ''
direction: INGRESS
disabled: false
id: '3828652160003716832'
kind: compute#firewall
logConfig:
  enable: false
name: fw-allow-proxies
network: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/networks/lb-network
priority: 1000
selfLink: https://www.googleapis.com/compute/v1/projects/possible-post-360304/global/firewalls/fw-allow-proxies
sourceRanges:
- 10.129.0.0/23
targetTags:
- load-balanced-backend

Когда я пытаюсь подключиться к экземпляру виртуальной машины по SSH из браузера, я получаю следующую ошибку:
Cloud IAP for TCP forwarding is not currently supported for google.com projects; attempting to use the legacy relays instead. If you are connecting to a non google.com project, continue reading. Please consider adding a firewall rule to allow ingress from the Cloud IAP for TCP forwarding netblock to the SSH port of your machine to start using Cloud IAP for TCP forwarding for better performance.и со временем:
We are unable to connect to the VM on port 22.

Что я делаю неправильно здесь, пожалуйста. Любое руководство будет большим подспорьем.

Спасибо!

0 ответов