Error404
Error404

Reputation: 56

how to fix ssh on gcloud vm

Earlier today, I tried to connect to my google cloud vm instance via ssh, but I got an error saying:

An error occurred while communicating with the SSH server. 
Check the server and the network configuration.

I have tried connecting via ssh using my local machine as well as the ssh button next to my vm instance on the gcloud website, but neither are working. The machine starts up without any issues, and the logs don't show any errors. It's just ssh that I'm having issues with.

This became a problem after I stopped and started my instance using the buttons on the google cloud console website. I had stopped and started my machine several times before without any issues.

Not sure if this has anything to do with it, but the vm was created using one of google's tensorflow deep learning vm images. Here's the description of the image:

Upvotes: 0

Views: 258

Answers (1)

Ajit Singh
Ajit Singh

Reputation: 80

If possible, try ssh from another workstation to rule out any firewall stuff in your local system. Try "gcloud compute ssh" using cloud shell if not done already. Check if "External IP" is attached and the Firewall is open for port 22 from the internet.

Upvotes: 0

Related Questions