

Prerequisites
- A Hetzner Cloud account (https://console.hetzner.cloud)
- An API token
- An SSH key pair (local
~/.ssh/id_rsaand~/.ssh/id_rsa.pub)
Get Your API Token
- Go to Hetzner Cloud Console > select your project (or create one)
- Security > API Tokens > Generate API Token
- Set permissions to Read & Write
- Copy the token (shown only once)
Configuration
Minimal Setup
Server Types
Hetzner’s pricing is significantly cheaper than other providers:Locations
Custom Image
Use a pre-built snapshot for faster boot:SSH Key (optional)
If you have an SSH key registered in Hetzner Cloud:Cost Limits
Examples
Quick Domain Recon
Budget Bulk Scanning
Hetzner’s low prices make it perfect for scanning many targets:Custom Command Pipeline
Distributed Nuclei at Scale
Port Scanning
Persistent Low-Cost Lab
EU-Based Scanning
Hetzner’s European locations are useful when you need scans originating from EU IP space:High-Performance with cx42
Cost Comparison
Why Hetzner is the cheapest option for bulk scanning:
Hetzner is ~3x cheaper than DigitalOcean and ~6x cheaper than AWS for equivalent specs.
Troubleshooting
”Unauthorized” Error
Your API token is invalid or expired. Generate a new one in the Hetzner Cloud Console.Server Type Not Available
Some server types may not be available in all locations. Try a different location:SSH Connection Issues
Hetzner servers default toroot user:
Rate Limiting
Hetzner’s API has rate limits. If creating many instances at once, you may hit them. Space out creation or contact Hetzner support to increase limits.Cleaning Up
Best Practices
- Use cx22 as default — 2 vCPU / 4 GB is enough for most scans at $0.007/hr
- Scale horizontally — 10 x cx22 is cheaper and faster than 1 x cx52 for parallelizable workloads
- Always
--auto-destroy— even at $0.007/hr, forgotten instances add up - Use European locations (fsn1, nbg1) for lowest latency to Hetzner’s network
- Pre-build snapshots for frequently-used tool configurations to skip setup time
- Set modest cost limits — even $5.00 max_total_spend goes a long way at Hetzner pricing
