Start here
The essentials
Every guide in this topic
-

How to set up SSH keys
Replace passwords with a key pair, log in without typing a password, and then switch password login off for good.
-

How to install Nginx on Ubuntu
Install Nginx, serve your first site from its own folder, and learn the three commands you will use every time you change its configuration.
-

How to get a free SSL certificate with Let’s Encrypt
Issue a trusted HTTPS certificate in one command with Certbot, redirect HTTP to HTTPS, and make sure it renews by itself.
-

How to set up a firewall on Linux
Block everything except SSH and the web with UFW on Ubuntu or firewalld on RHEL-based systems, without locking yourself out.
-

How to turn on automatic security updates
Have the server install security patches by itself every day, on Ubuntu with unattended-upgrades and on RHEL-based systems with dnf-automatic.
-

How to back up a Linux server
Dump the databases, copy the files to another machine every night with rsync and cron, and prove the backup works by restoring it.
-

How to connect to a server with SSH
Open a secure command line on a remote server from Windows, macOS or Linux, and understand the host key prompt you see the first…


