How do I configure ufw to allow ssh on another port? [closed]

Solution 1:

I guess you haven't allowed the SSH port in your ufw configuration. In the case where you have not done this, the port where SSH is running is blocked by the firewall. I guess you can't have remote access to your server...

If you have (physical) access to your server you can open the SSH port using following command:

sudo ufw allow <port number>/tcp