How to Secure a Cryptocurrency Node on a VPS

A cryptocurrency node is a normal server with one difference: what it protects can be spent. A web server that gets compromised costs you time; a node with a hot wallet that gets compromised can cost you the funds. This guide covers the hardening that is specific to blockchain nodes, on top of ordinary VPS security, with Bitcoin Core as the worked example.

Start with the Basics

Everything in VPS Security Checklist for Beginners applies first: SSH keys only, password login off, automatic security updates, Fail2Ban, and a firewall that denies by default.

sudo ufw default deny incoming
sudo ufw allow OpenSSH
sudo ufw allow 8333/tcp     # Bitcoin P2P, only if you accept inbound peers
sudo ufw enable

Run the Node as Its Own User

sudo adduser --system --group --home /var/lib/bitcoind bitcoin

Run the daemon as that user under systemd, never as root. Bitcoin Core ships an example service file (contrib/init/bitcoind.service) that already includes sensible sandboxing such as ProtectSystem, PrivateTmp and NoNewPrivileges.

Keep RPC Private

The RPC interface controls the node and any wallet loaded in it. It must never be reachable from the internet. In bitcoin.conf:

server=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
# authenticate with rpcauth (a salted hash), not a plain rpcuser/rpcpassword pair
rpcauth=myapp:SALT$HASH

Generate the rpcauth line with the share/rpcauth/rpcauth.py script that comes with Bitcoin Core; it prints the password once for you to give the application. Applications on the same server can also use the cookie file in the data directory and need no password at all.

If something on another server must reach RPC, use an SSH tunnel or WireGuard rather than opening the port:

ssh -N -L 8332:127.0.0.1:8332 user@your-node

Then confirm from outside that only what you intend is open: nmap -p 8332,8333 YOUR_IP from another machine.

Separate the Node From the Money

  • Run the node without a wallet (disablewallet=1) when it only validates and serves data.
  • Use watch-only wallets on the server to track balances, and sign on a hardware wallet or an offline machine.
  • Keep only working balances hot. A Lightning node or payment processor needs some funds online; everything else belongs in cold storage.
  • Encrypt any wallet that must live on the server, with a strong passphrase that is not stored on the same machine.

Seed Phrases Never Touch the Server

Write recovery phrases on paper or metal and keep them offline. A seed phrase in a file, a password manager synced to the server, or a screenshot is a seed phrase an attacker can take. Back up wallet files encrypted and off the server — see Backup Encryption. We do not hold backups of customer servers.

Verify Every Download, Update Promptly

Download node software only from the project’s official site or repository, and verify the release signatures and checksums before installing — fake node binaries are a known way to steal funds. Watch the project’s security announcements and update promptly when a release is flagged as security-relevant.

Choose a Disk Size That Fits the Chain

A full, unpruned Bitcoin node needs hundreds of gigabytes and keeps growing, and some chains need far more. Check the storage on each plan on the hardware specifications page before you start. If the chain does not fit, run a pruned node — prune=550 in bitcoin.conf keeps only recent blocks and still fully validates everything — or use a test network such as signet for development. A disk that fills up mid-sync can corrupt the node’s databases.

Watch It

Privacy

Your node’s IP address is visible to its peers. If that matters, Bitcoin Core can run over Tor (proxy=127.0.0.1:9050, listen=1 with an onion service). Paying for the server itself can also be private: we accept Bitcoin, USDT and Ethereum, and an order needs only an email address — see anonymous VPS.

Common Mistakes

RPC bound to 0.0.0.0 — usually from a copied config. Check with ss -tulpn | grep 8332; it should show 127.0.0.1 only.

Docker publishing ports past the firewall — -p 8332:8332 in Docker bypasses UFW. Publish to localhost instead: -p 127.0.0.1:8332:8332.

A large hot wallet “because the server is secure” — no internet-connected server is secure enough for savings.

Continue Reading

Browse more articles in Cryptocurrency & Blockchain Node Hosting.

  • secure crypto node, blockchain node security, rpc security, crypto vps hardening
  • 36 Users Found This Useful
Was this answer helpful?

Related Articles

How to Run a Bitcoin Full Node on a VPS

Running your own Bitcoin full node lets you independently verify transactions and blocks without...

How to Run an Ethereum Node with Geth and a Consensus Client

Since Ethereum's transition to proof-of-stake, running a full node requires two separate pieces...

VPS Requirements for Running a Blockchain Node

Different blockchain networks have vastly different resource requirements — this guide...

How to Set Up a Lightning Network Node (LND) on a VPS

The Lightning Network enables fast, low-fee Bitcoin transactions through payment channels. This...

How to Run a Monero Node on a VPS

Monero is a privacy-focused cryptocurrency; running your own node lets you interact with the...