---
title: "Discussion on \"How Fast a New VPS Gets Attacked: The First Hour, Measured\" | Hashnode"
description: "Discussion on \"How Fast a New VPS Gets Attacked: The First Hour, Measured\". We started three fresh VPS and logged every probe for an hour. The first SSH password guess came 4 to 8 minutes after boot."
url: "https://hashnode.com/posts/how-fast-a-new-vps-gets-attacked-the-first-hour-measured/6b0429b782a8f59134a6cee3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Fast a New VPS Gets Attacked: The First Hour, Measured](https://nocthost.hashnode.dev/how-fast-a-new-vps-gets-attacked-the-first-hour-measured?utm_source=hashnode&utm_medium=feed)

We started three fresh VPS and logged every probe for an hour. The first SSH password guess came 4 to 8 minutes after boot.

5d ago · 7 min read · nocthost.hashnode.dev  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Danil Chernov](https://hashnode.com/@venom7892)

@venom7892

  
[View profile](https://hashnode.com/@venom7892)

## Responses 2

Markdown supported · ⌘↵ to post

[c-wind](https://hashnode.com/@c-wind)

[5d ago](https://hashnode.com/posts/how-fast-a-new-vps-gets-attacked-the-first-hour-measured/6b0429b782a8f59134a6cee3/comment/6b043b3e1e38905250ac85a8)

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.

[Danil Chernov](https://hashnode.com/@venom7892)

[4d ago](https://hashnode.com/posts/how-fast-a-new-vps-gets-attacked-the-first-hour-measured/6b0429b782a8f59134a6cee3/comment/6b043b3e1e38905250ac85a8#reply-6b0547466ba691abcfa4d22a)

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.
