Urgent.News

What's breaking now, across hundreds of outlets.

Tech

SSH hardening for a VPS, checked against 60 days of honeypot traffic

Our decoy server received 115,079 SSH connections in 60 days. Its address was never published, so none of them were aimed at us. They came from tools that try every address on the internet, and they would try yours the same way. Each setting below comes from something a bot actually did on the decoy, so you can see what it would have stopped. Method in one line: one Echidra OSS sensor on a $6…

During a 60-day period, a virtual private server (VPS) decoy server received 115,079 SSH connections, with none of them targeting the actual server. These connections originated from various bots that attempted to access every address on the internet. The most common usernames targeted by these bots were "root," "ubuntu," "support," and "admin," accounting for 85% of the login attempts.

To harden the SSH configuration, several settings were implemented. Root user logins were disabled using "PermitRootLogin prohibit-password," and only the "deploy" username was allowed to log in via SSH. All other usernames were blocked. Password authentication was completely disabled, and key-based authentication was enforced using "PasswordAuthentication no" and "KbdInteractiveAuthentication no".

A bot successfully logged in with a hardcoded SSH key, which could later be used to regain unauthorized access. To prevent this, all authorized_keys files were examined, and any suspicious keys were identified. Auditing was set up using auditd on Debian or Ubuntu to monitor changes to the authorized_keys files. The login process was limited to three attempts, and fail2ban was installed to block IP addresses after repeated failures.

Additionally, the SSH daemon configuration file was modified to include the hardening settings, and the changes were verified using "sshd -t" and "sshd -T" commands. The new SSH configuration should be tested by logging in with a key and then reloading the service. Once the second terminal session is confirmed to work, the first terminal session can be closed.

It is recommended to implement these SSH hardening measures first on a new server to minimize potential security risks.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Watching what an agent's sandbox is doing: CPU, memory, disk and run history

Short answer: four CLI commands answer most "what is my agent doing in there?" questions. sandscale sandbox list shows which sandboxes exist, sandscale sandbox metrics ID --follow shows CPU, memory…

  • "sandscale sandbox list" shows all existing sandboxes
  • "sandscale sandbox metrics ID --follow" monitors real-time CPU, memory, disk usage
  • API GET /api/v1/sandbox/runs/{id} provides detailed run information and cost

Antes de conectar un buscador de destinos a Nominatim: decisiones que debes tomar

Por el equipo de Mapitt , una plataforma venezolana de viajes. Guía documental elaborada con inteligencia artificial; no describe la infraestructura ni las fuentes de datos actuales de Mapitt.

  • Decide between OpenStreetMap and alternative data sources for destination search
  • Choose provider: commercial vendor, own installation, or public service
  • Design app interaction to comply with OpenStreetMap policy and licensing

Designing Retry-Safe Customer Intake with PostgreSQL

Disclosure: This draft was generated with AI assistance for GILNEX editorial review. The SQL is an illustrative example, not a verified production implementation. References checked November 27, 2026. A customer taps Submit, the network times out, and the browser retries.

  • Unique "retry key" assigned to each operation, reused after network timeout
  • Simplified client request "fingerprint" saved to detect conflicts
  • PostgreSQL table "intakerequests" with tenantid, requestkey, payloadhash, responseid as primary key

More from Friday 27 November →