The IP-reuse point is the most useful caveat in the numbers. A 4-minute first guess versus 8 minutes is probably the previous tenant's reputation, not the provider, and a one-host sample can't rank clouds. The consistent part is the window: you don't have time to "set it up later."
One thing I'd add to the first-five-minutes list: don't restart sshd until the key login has been tested in a second session. The sed snippet is fine, but a typo plus systemctl restart ssh is a lockout, and at that point password login is already what the bots are trying.
The Docker/ufw bypass is also worth treating as a default assumption, not an edge case. docker run -p 3000:3000 or -p 3306:3306 puts those ports on the public interface even after ufw default deny incoming, which is exactly the accidental-exposure set the scans were hitting.
Good additions, thanks. Testing the key in a second session before the restart is the step that saves people a trip to the web console, and running sshd -t first catches the typo case before anything restarts. Agreed on Docker too: publishing as 127.0.0.1:3000:3000 and keeping a reverse proxy as the only public listener is the safer default.
c-wind
The IP-reuse point is the most useful caveat in the numbers. A 4-minute first guess versus 8 minutes is probably the previous tenant's reputation, not the provider, and a one-host sample can't rank clouds. The consistent part is the window: you don't have time to "set it up later."
One thing I'd add to the first-five-minutes list: don't restart sshd until the key login has been tested in a second session. The
sedsnippet is fine, but a typo plussystemctl restart sshis a lockout, and at that point password login is already what the bots are trying.The Docker/ufw bypass is also worth treating as a default assumption, not an edge case.
docker run -p 3000:3000or-p 3306:3306puts those ports on the public interface even afterufw default deny incoming, which is exactly the accidental-exposure set the scans were hitting.