Score:0

Can not connect to Linux instance using SSH through Putty

eg flag

Just signed up for GCP account and created a Linux VM on GCP (SUSE) and having issues to connect via SSH through Putty. Also tried through CMD prompt on Windows 10 and get the same issue. Followed up all the steps to generate ssh keys and uploaded public key on GCP (also, I can see the key in .ssh directory). Firewall is set to enable all hosts and ports to connect. I am able to ping the External IP but when trying to ssh into the VM there is no response and ends in timeout. ssh -i pathtoKeyfile user@External_IP ssh: connect to host xx.xx.xx.xx port 22: Connection timed out

Please help with any suggestion on similar issues.

Tim avatar
gp flag
Tim
I don't know GCP, but I would check port 22 is open in any GCP / instance firewall first, and check the SSH daemon is running - which it probably is.
John Hanley avatar
cn flag
You list the steps but no details. Connection Timed Out typically means you have not created an ingress rule allowing SSH or you are connecting to the wrong IP address, .... Edit your question with details on what you have configured.
Elsi Voci avatar
eg flag
Firewall is configured as below (assumed to allow all ports/IP to connect to): Type Targets Filters Protocols / ports Action Priority Network Logs Hit count allow-ssh-from-putty Ingress Apply to all IP ranges: 0.0.0.0/0 all Allow 1000 default On
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.