ssh issue

491 views
Skip to first unread message

Sneh Shrivastava

unread,
Jun 8, 2022, 6:05:11 PM6/8/22
to gce-discussion
after changing the vpc network of the instance the ssh is giving operation timeout.
I have checked the firewall.
And was doing ssh to public ip only.

Leonardo Belloc Mendiola

unread,
Jun 14, 2022, 10:24:53 AM6/14/22
to gce-discussion

Check your firewall rules with the following command: gcloud compute firewall-rules list with this, you can review the  VPC where the VM instance was migrated; and if it has allowed the Ingress TCP: 22 Port, you will see something like this:


NAME: testmivpc-allow-ssh

NETWORK: testmivpc

DIRECTION: INGRESS

PRIORITY: 65534

ALLOW: tcp:22

DENY:

DISABLED: False


If this firewall rule is missing, you can add the firewall rule in the GCP console -> VPC Networks ->select your VPC network _Click on the firewall rules to double check that the tcp: 22 port is allowed.

If the issue still is ongoing after checking the firewall rules, you can follow this guide to start troubleshooting SSH connection .

Reply all
Reply to author
Forward
0 new messages