Hardening SSH on a fresh Ubuntu 24.04 or Debian 12 VPS: a step-by-step checklist
A newly provisioned VPS with a public IP typically faces automated SSH password guessing within minutes, since bots scan the entire IPv4 range continuously. A checklist published for Ubuntu 24.04 and Debian 12 walks administrators through a roughly hour-long hardening process in a deliberate order. Its key advice is to keep an existing SSH session open and test each change from a second terminal before closing the first. The guide also flags distribution quirks, such as socket-activated SSH on Ubuntu and the absence of auth.log on Debian, and explains that cloud-init drop-in files can silently override later settings. It further covers creating a sudo user, enabling the firewall with rate-limited SSH, and configuring fail2ban to read the systemd journal.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in