Haven't owned my own server before :D got excited and started setting up.
20 mins playing with it, I wanted to make the server secure. Thought of adding a firewall and adding an HTTPS certificate, read and joined together some articles and ended up locking myself out :D unable to SSH into the server :P
THE PANIC .. THE HORROR!
Haven't had cold sweats in a while, for quite sometime there was all out panic! xD
Fixed it by doing the following:
This time setting up the server following these docs (in order):
After almost 4 hours finally done, and super happy that this happened. Got to learn so many new things :D and the range of emotions and adrenaline rush was just epic!