Reputation: 927
I have set up and have been using a Google Cloud Platform virtual machine. The browser ssh (a browser tab imitating a console) used to work fine. Yesterday, the sites and API hosted on the machine became unreachable.
The GCP console dashboard shows the machine to be up and running. However, the ssh (which used to work before), is not working. On click, it opens a new window, displays messages of transferring ssh keys ...
, and then ultimately shows - An error occurred while communicating with the SSH server. Check the server and the network configuration
.
After numerous such attempts, I restarted the VM instance from the GCP console, and everything started working again. But in less than a few hours of restart, the VM has again become reachable. Also, note that (1) the ping gives positive reply, (2) Console shows VM to be running normally, (3) All web pages, and API hosted on the machine are returning 408 (Request time out), (4) Restart cures the problem for a short while, (5) ssh through gcloud also not working, indefinitely waiting for connection with the server.
Since google support is only available on a paid basis, I am stuck. Any help would be deeply appreciated.
Upvotes: 1
Views: 1459
Reputation: 7983
One other reason for not being able to ssh into a machine is because you are connected to a VPN network locally. This can prevent ssh
ing to a gcp vm instance.
Disable local VPN connection and try again.
Upvotes: 1
Reputation: 1547
As your issue seems to be more related with the OS, you may want to try and connect through the serial port as described here, however, I would say that a faster and more reliable way to solve this would be to simple increase the disk size of your instance as what you have assigned right now may not be enough for the operations you are running.
Additionally, you may find more help with this over at this answer which has a very complete rundown on what you may do in these cases.
Upvotes: 0