Get started

Crypto and payments

How to run a Bitcoin node on a VPS (full or pruned)

Pruned or full, how much disk, RAM and traffic each needs, then a verified install of Bitcoin Core that runs as a service.

By LowCostServ · Updated November 12, 2026 · 6 min read

Val looks up at a chain of glowing cubes in the night sky, linked to a server rack.

A Bitcoin node downloads every block, checks every rule and takes nobody’s word for anything. With your own, your wallet stops asking someone else’s server what your balance is. A VPS suits the job: always on, a fixed address, and here a port where traffic is not counted. This guide installs Bitcoin Core on Ubuntu or Debian, pruned or full, as a service that survives a reboot.

It assumes you log in over SSH as a user with sudo. If not, start with How to connect to a Linux server with SSH and Secure a new Linux server in 15 minutes.

Full or pruned?

Both download the whole chain and verify every block. The difference is what they keep afterward.

Pruned nodeFull node
Validates every blockYesYes
Keeps on diskThe current state and the most recent blocks, up to a size you setEvery block since 2009
Answers your own walletYesYes
Serves old blocks to new nodesNoYes
txindex, Electrum server, block explorerNoYes
Changing your mindGoing back to full means downloading the chain againCan be pruned at any time

Keep the keys somewhere else. Bitcoin Core’s own documentation advises against using it for security-sensitive operations on a machine you do not control exclusively, a VPS included. Let this node validate and relay; keep the keys of any real balance in a wallet on your own device, and point that wallet at the node.

Disk, RAM and bandwidth

PrunedFullFull with indexes
DiskThe size you set, plus the database of unspent coinsThe whole chain: several hundred gigabytes, and growing1 TB of NVMe or more
RAM4 GB is comfortableMore is better: memory given to the cache shortens the first sync
BandwidthThe whole chain once, then littleThe whole chain once, then whatever other nodes ask of you
Start withVPS 4A dedicated server

Do not take the size of the chain from an article, this one included: look up the current figure before you choose a disk, and leave it room to grow.

A pruned node fits a VPS 4: 2 cores, 4 GB DDR5 and 80 GB of NVMe for $6.99 a month. A full node belongs on a dedicated server, from $59 a month. Count the usable space: two drives in a mirror hold what one drive holds. With txindex and an Electrum index on top, 1 TB of NVMe is the floor, so take a server with room above it, such as the Ryzen 9 9950X server with 2 × 1.92 TB NVMe.

A node is not a miner. Nodes are allowed on every plan; mining keeps every core busy around the clock and belongs on a dedicated server, not on the shared cores of a VPS. The rule is in the acceptable use policy.

Why unmetered traffic matters

The first sync downloads the whole chain, pruned or not. After that, a full node that accepts connections hands old blocks to every new node that asks, which can reach hundreds of gigabytes a month. With a traffic quota, the usual advice is to cap uploads, for instance with maxuploadtarget=5000 (MiB per 24 hours), or to stop listening. On an unmetered port, neither is needed.

1. Install Bitcoin Core

Take the software from bitcoincore.org and verify it before you run it: this is software people trust with money. Set VERSION to the current release on its download page (32.1 when this guide was written).

sudo apt update && sudo apt install -y wget gnupg git
VERSION=32.1
cd "$(mktemp -d)"
wget https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION-x86_64-linux-gnu.tar.gz
wget https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS
wget https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS.asc

First check: the file matches the published checksum. The line must end in OK.

sha256sum --ignore-missing --check SHA256SUMS

Second check: the checksum list was signed by the people who build the releases.

git clone https://github.com/bitcoin-core/guix.sigs
gpg --import guix.sigs/builder-keys/*
gpg --verify SHA256SUMS.asc SHA256SUMS

You want several lines saying Good signature. The warning that a key “is not certified with a trusted signature” is expected: you have not told GPG whose keys you trust. If a checksum is not OK or a signature is BAD, stop and download again. Then install the two programs:

tar -xzf bitcoin-$VERSION-x86_64-linux-gnu.tar.gz
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-$VERSION/bin/bitcoind bitcoin-$VERSION/bin/bitcoin-cli

2. A dedicated user and bitcoin.conf

The node runs under its own account, with its data in /var/lib/bitcoind:

sudo useradd --system --create-home --home-dir /var/lib/bitcoind --shell /usr/sbin/nologin bitcoin

Write the configuration as that user. For a pruned node:

sudo -u bitcoin tee /var/lib/bitcoind/bitcoin.conf > /dev/null <<'EOF'
server=1
listen=1
prune=20000
dbcache=1024
EOF

For a full node, the same file with these four lines:

server=1
listen=1
txindex=1
dbcache=8192
  • prune is the disk space left to blocks, in MiB: 20000 keeps about 20 GB of the most recent ones. The minimum is 550.
  • dbcache is memory for the database, in MiB. More shortens the first sync; lower it if the server starts to swap. The second file assumes a dedicated server.
  • txindex=1 indexes every transaction and cannot be combined with prune. Leave it out unless something you run needs it.
  • server=1 lets bitcoin-cli command the node from the machine itself. listen=1 accepts connections from other nodes.

3. A systemd unit

sudo tee /etc/systemd/system/bitcoind.service > /dev/null <<'EOF'
[Unit]
Description=Bitcoin daemon
After=network-online.target
Wants=network-online.target

[Service]
User=bitcoin
ExecStart=/usr/local/bin/bitcoind -datadir=/var/lib/bitcoind
Restart=on-failure
TimeoutStopSec=600
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now bitcoind

The node now starts at every boot and restarts if it crashes. TimeoutStopSec gives it ten minutes to write its cache to disk when it stops. Follow the log with sudo journalctl -u bitcoind -f.

4. Firewall

Port 8333 is where other nodes reach yours. Opening it is optional: a node works with outgoing connections alone. With ufw:

sudo ufw allow 8333/tcp

Never open port 8332. It is the control port (RPC), and Bitcoin Core binds it to 127.0.0.1 by default. Leave it there. To use it from another machine, go through an SSH tunnel.

5. The first sync

The node now downloads and verifies every block since 2009. How long that takes depends on processor, disk and dbcache more than on the network: from most of a day to several days on a small VPS, hours on a fast dedicated server. Take both as orders of magnitude, not promises. Processor and disk stay busy until it ends; afterward the node is quiet.

sudo -u bitcoin bitcoin-cli -datadir=/var/lib/bitcoind -getinfo
sudo -u bitcoin bitcoin-cli -datadir=/var/lib/bitcoind getblockchaininfo

The first command prints a summary. In the second, watch blocks catch up with headers, verificationprogress approach 1 and initialblockdownload turn false. size_on_disk is what the blocks occupy.

Updating

Stop the node and let it finish, repeat step 1 with the new version number, verification included, then start it again. The data stays where it is.

sudo systemctl stop bitcoind
# step 1 again, with the new VERSION
sudo systemctl start bitcoind

What to add next

  • A Lightning node. LND and Core Lightning both run on top of a pruned node, within limits their documentation describes.
  • A self-hosted payment server, to accept Bitcoin with nobody in the middle. It runs next to a pruned node.
  • An Electrum server, so that your wallets ask your own node. It needs a full node, and most implementations need txindex=1 as well: plan it on a dedicated server from the start.

Plans for each are on the Bitcoin VPS page. Paying for them in BTC is covered in How to pay for hosting with Bitcoin.

Sources and further reading

One click, one payment, one server.

Cloud VPS from $3.99 a month: no email, no ID, crypto payment, root access in minutes.

  • No KYCNo email, no ID
  • No DMCANotices not acted on
  • Crypto friendlyBTC, ETH, XMR, USDT, SOL
  • UnmeteredOn every plan

Client area

One key for your servers, your payments and your balance.

  • Nothing about you. No email, no name, no phone number, no ID.
  • Pay in crypto. BTC, ETH, XMR, USDT and SOL.
  • Up to +30% on top-ups. The bonus starts at $100.
  • Yours alone. We keep a fingerprint of your key, never the key itself.
How the access key works

Your account

No email, no password, no name. One access key.

New here? Create your access key