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.
Click below to sign up and get $100 of credit to try our products over 60 days!