I'm interested in setting up some basic security on an Ubuntu 16.04 VPS that I'm working on. I'm reading through these articles:
- My First 10 Minutes On a Server – Primer for Securing Ubuntu | Codelitt Incubator
- My First 5 Minutes On A Server or Essential Security for Linux Servers | Bryan Kennedy's Blog.
I'm reading the section about ufw now. I'm going to be connecting from variable IP addresses via ssh. Given this requirement, what should I set the first line in the screenshot to, to make sure I retain access?
Best Answer
I'm a bit confused about the title, but to answer your question
sudo ufw allow 22
or evensudo ufw allow OpenSSH
will open up port 22 to the world.I didn't look at your links, but I hope they also suggest using keys instead of password login.