I am unable to access my server anyhow?

Posted May 12, 2017 5.8k views
NginxDigitalOceanControl PanelsUbuntu 16.04

I think that someday, I restarted my server using the Digitalocean control panel probably due to which this problem started.
The current situation- I am not able to SSH and also unable to connect using Control Panel consol window. to my droplet
I expect that some files related to ssh might have got corrupted for me not being able to connect via ssh (It shows “Connection closed by <ip> on port 22”). For the second case, the reason might be the fact that my office network only allows connections on port 80, 443 and 22 only (It shows a black screen with “Server disconnected (code: 1006)”).
So what should I do now to get access to the droplet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @harshit0agrawal

Can you go to the control panel and power off the droplet. Wait a few seconds and then start it again. If you check the Console, can you see anything happening?

The Console in the control panel connects to the droplet like it was a monitor, so it doesn’t matter if SSH is working or not.

  • I did a similar thing but it hardly made any difference. The only difference was I did not wait for a few seconds. I restarted the droplet as soon as it got powered off. Would that work or should I try again?

    • @harshit0agrawal
      Well, it takes a few seconds for the actions to kick in, but it shouldn’t make any difference, since they should be queued up.
      If the Console is all black and says a connection-error-message in the bottom, then it sounds like you need to open a support ticket through the control panel.