SSH and Security
Keys, access and hardening.
- Block repeated sign-in attempts with Fail2banInstall Fail2ban, protect SSH and check what has been blocked.
- Configure a firewall with ufwAllow only what you need on Ubuntu and Debian without locking yourself out.
- Configure firewalld on AlmaLinux and Rocky LinuxOpen services and ports permanently and check what is allowed.
- Connect to your VPS with SSHSign in as root with your password or SSH key, at the address on your server page.
- Create an SSH key and add it to your accountGenerate a key pair on your computer and share only the public half.
- Harden the SSH serverTurn off password sign-in, limit who can connect and check before reloading.
- Protect your account with two-factor sign-inAdd an authenticator app, keep recovery codes and review sessions.
- Reach private services through an SSH tunnelOpen a database or admin page securely without exposing it to the internet.
- Secure a new Linux VPSThe first steps to take on a new Ubuntu or Debian server.