Problem with SSH after enabling UFW

Since you've configured your firewall the following error should be new to you.

ssh: connect to host 159.203.92.33 port 22: Connection timed out

:flushed:

Here’s a good aproach

Add the rule by using the1. Web Console in the 2.access option image-title-here

now you will get few prompts like the following:

droplet-name login:root

you should use your root account which it’s the one that’s having a full control of your server.

Then you will be asked for your password and that should be the same exact password which you were using when you wanted log in into your server with ssh .

Thereafter you can type your command as the following:

VirtualPrivateServer$sudo ufw allow ssh

You can then add more rules via the web console whenever you like but reasonably with purpose ...