First steps on the server¶
After your first SSH login, a few basics go a long way.
1. Update the system¶
Debian / Ubuntu
Rocky / Alma / Fedora
2. Create a user (optional)¶
Working as root day-to-day isn’t ideal. Example on Ubuntu/Debian:
Then log in as deploy and use sudo for admin tasks.
3. Set the timezone¶
4. Firewall basics¶
If you enable a firewall, don’t lock yourself out of SSH (port 22).
UFW (Ubuntu)
firewalld
5. Prefer SSH keys over passwords¶
See the key section in SSH login. Once the key works, you can disable password login in /etc/ssh/sshd_config - only if you’re sure the key works.