Can You Mine Crypto on a VPS?
Short answer: no. Every major VPS provider explicitly bans cryptocurrency mining. Hetzner went further — in November 2022, they terminated over 1,000 Solana validator nodes in a single enforcement sweep, temporarily knocking out roughly 20% of Solana's stake-weighted validators. The bans cover both Proof-of-Work mining (which consumes enormous CPU) and, at providers like Hetzner, Proof-of-Stake validation (which barely uses any CPU at all). If you're searching for a VPS to mine on, this article will save you the suspension notice.
Why providers ban mining
The ban isn't ideological — it's operational. Mining creates specific problems for shared VPS infrastructure:
- CPU starvation. Proof-of-Work mining pins CPU at 100% continuously, 24/7. On shared infrastructure where 20-50 VPS instances share the same physical CPU, one mining customer degrades performance for every other customer on the node. Providers sell shared CPU on the assumption that most customers use it in bursts, not continuously.
- Electricity cost. VPS pricing assumes average CPU utilization of 5-15%. Mining pushes utilization to 100%, which means the electricity cost of running that VPS exceeds the revenue the provider collects from it. The customer is arbitraging cheap VPS pricing against electricity costs — the provider loses money on every mining customer.
- Hardware wear. Sustained 100% CPU load generates heat that accelerates component degradation. Fans run at maximum speed. Enterprise SSDs have write endurance ratings that mining workloads approach faster than normal use.
- Abuse pipeline. Many mining operations use stolen credit cards or compromised accounts to provision VPS instances for mining. Providers see mining as correlated with fraud, which increases their abuse processing costs.
Provider policy map
Here's what each major provider's AUP actually says about cryptocurrency mining, with direct quotes where available:
| Provider | Mining policy | PoS included? | AUP language |
|---|---|---|---|
| Hetzner | Banned | Yes | All crypto operations prohibited, including PoS validation |
| DigitalOcean | Banned | Unclear | Prohibits crypto mining explicitly |
| Vultr | Banned | Unclear | Prohibits cryptocurrency mining |
| Contabo | Banned (VPS) | Varies | Banned on VPS; allowed on dedicated servers with restrictions |
| OVHcloud | Banned (VPS) | Unclear | Prohibited on VPS/Public Cloud; bare-metal may differ |
| AWS | Banned | Unclear | AUP prohibits workloads that disrupt services |
| Azure | Banned | Unclear | Prohibits automated processes disrupting service |
| BuyVM | Silent | — | No mention of cryptocurrency in AUP |
| Linode/Akamai | Gray zone | — | No explicit ban; dedicated CPU plans may tolerate PoS |
"Banned" means the AUP explicitly prohibits mining. "Silent" means mining isn't mentioned — which is not the same as "allowed." Providers with no explicit policy can still terminate your account under general "excessive resource usage" or "service disruption" clauses.
The Hetzner-Solana incident
In November 2022, Hetzner enforced their mining ban against Solana validators in a single coordinated action. The numbers were staggering: over 1,000 Solana validator nodes were terminated, representing roughly 20% of the network's stake-weighted validators. The Solana network continued operating — it's designed for node churn — but the incident exposed how concentrated Solana's infrastructure was on a single hosting provider.
The significance wasn't just the scale. It was what Solana validators were running: Proof-of-Stake validation, not Proof-of-Work mining. PoS validation uses moderate CPU (nothing like PoW mining) and was arguably a legitimate server workload. But Hetzner's policy draws no distinction — all cryptocurrency-related operations are prohibited, regardless of CPU impact.
The Solana community's response was to diversify hosting away from any single provider. But the lesson for individual users is simpler: Hetzner means it. If your workload involves cryptocurrency in any form — mining, validating, running a node — Hetzner will find it and terminate it.
PoW vs PoS — providers don't always distinguish
Proof-of-Work mining (Bitcoin, Monero, Litecoin) and Proof-of-Stake validation (Ethereum, Solana, Cardano) are fundamentally different workloads:
| Aspect | Proof-of-Work | Proof-of-Stake |
|---|---|---|
| CPU usage | 100% continuous | 5-30% intermittent |
| Purpose | Solve hashes to earn rewards | Validate transactions, earn staking rewards |
| VPS viability | Never profitable (GPU/ASIC-only) | Can be viable on dedicated CPU |
| Provider concern | CPU/electricity abuse | Varies — some see it as legitimate compute |
From a provider's perspective, PoW mining is straightforward to ban — it's an abuse of shared resources. PoS validation is more nuanced. A Solana validator uses CPU more intensively than a typical web server but less than video transcoding or machine learning training. Yet Hetzner bans both. Other providers (DigitalOcean, Vultr) prohibit "mining" without clarifying whether PoS validation counts.
If you're running a PoS validator, don't assume you're safe just because your CPU usage is moderate. Read the specific AUP language. If it says "cryptocurrency" broadly, not just "mining" specifically, PoS validation is within the ban.
How they detect it
Providers don't manually inspect your VPS. Detection is automated through several methods:
- CPU pattern monitoring. Sustained 100% CPU utilization over hours or days triggers alerts. PoW mining has a distinctive pattern: constant maximum usage with no variation, unlike web servers or databases which spike and drop.
- Process name scanning. Known mining software process names (xmrig, ethminer, cgminer, bfgminer, nicehash) appear in process lists that providers can inspect. Renaming the binary is trivial but doesn't fool deeper analysis.
- Network traffic analysis. Connections to known mining pool IP addresses and domains are flagged. Mining protocols have recognizable traffic patterns (Stratum protocol on specific ports).
- Community reports. Other customers on the same node notice degraded performance and report it. Provider support investigates and finds the mining process.
Detection typically leads to a warning email with 24-48 hours to comply, followed by suspension. Some providers (Hetzner, OVH) have suspended without warning. Data is usually preserved for a retrieval window, but don't count on it.
Where you actually can mine
Mining on a shared VPS is economically irrational regardless of policy — the VPS cost exceeds mining revenue for any coin on CPU. But if you're running a PoS validator or blockchain node, your options are:
Dedicated servers (bare metal)
Some providers that ban mining on VPS allow it (or tolerate it) on dedicated servers where you're the only tenant. Contabo's dedicated servers may allow mining workloads not permitted on their VPS. OVHcloud's bare-metal range has different terms than their VPS/cloud products. Always verify the specific terms for the product type you're buying.
Crypto-friendly providers
A small number of providers market specifically to blockchain workloads. These tend to be smaller, niche operations with higher prices. Search for "blockchain hosting" or "validator hosting" rather than generic VPS providers. The Solana and Ethereum communities maintain lists of validator-friendly hosting.
Colocation
Bring your own hardware to a data center. You own the machine, the data center provides power, cooling, and network. No AUP restrictions on what you run because it's your hardware. This is the path for serious mining or validation operations.
FAQ
Can you mine crypto on a VPS?
Not on any major provider. Hetzner, DigitalOcean, Vultr, Contabo, OVH, AWS, and Azure all explicitly ban cryptocurrency mining. Enforcement is automated (CPU monitoring, process scanning, network analysis). Even if policy didn't prohibit it, the economics don't work — VPS costs exceed mining revenue on CPU.
Does Hetzner allow Solana validators?
No. Hetzner bans all cryptocurrency operations including PoS validation. In November 2022, they terminated 1,000+ Solana validators in a single sweep. The ban covers mining, validating, and running any blockchain node.
Which VPS providers allow mining?
No major provider explicitly allows mining on shared VPS. BuyVM's AUP doesn't mention cryptocurrency (silent, not explicitly allowed). For PoS validation, dedicated servers from Contabo or specialized blockchain hosting providers are the practical options. For PoW mining, colocation with your own hardware is the only viable path.