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

> How to run a Bitcoin node on a VPS: full or pruned, disk, RAM and bandwidth sizing, installing Bitcoin Core, bitcoin.conf, firewall and sync time.

Source: https://lowcostserv.com/guides/run-a-bitcoin-node-on-a-vps · Publisher: LowCostServ (lowcostserv.com) · Prices in US dollars, as published on November 26, 2026.

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

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](https://lowcostserv.com/guides/connect-to-a-server-with-ssh) and [Secure a new Linux server in 15 minutes](https://lowcostserv.com/guides/secure-a-new-linux-server).

## Full or pruned?

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

|  | Pruned node | Full node |
| --- | --- | --- |
| **Validates every block** | Yes | Yes |
| **Keeps on disk** | The current state and the most recent blocks, up to a size you set | Every block since 2009 |
| **Answers your own wallet** | Yes | Yes |
| **Serves old blocks to new nodes** | No | Yes |
| **`txindex`, Electrum server, block explorer** | No | Yes |
| **Changing your mind** | Going back to full means downloading the chain again | Can 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

|  | Pruned | Full | Full with indexes |
| --- | --- | --- | --- |
| **Disk** | The size you set, plus the database of unspent coins | The whole chain: several hundred gigabytes, and growing | 1 TB of NVMe or more |
| **RAM** | 4 GB is comfortable | More is better: memory given to the cache shortens the first sync |  |
| **Bandwidth** | The whole chain once, then little | The whole chain once, then whatever other nodes ask of you |  |
| **Start with** | VPS 4 | A 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](https://lowcostserv.com/vps): 2 cores, 4 GB DDR5 and 80 GB of NVMe for $6.99 a month. A full node belongs on a [dedicated server](https://lowcostserv.com/dedicated-servers), 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](https://lowcostserv.com/dedicated-servers/ryzen-9-9950x) 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](https://lowcostserv.com/legal/acceptable-use).

## 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](https://lowcostserv.com/unmetered-vps), 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](https://lowcostserv.com/bitcoin-vps). Paying for them in BTC is covered in [How to pay for hosting with Bitcoin](https://lowcostserv.com/guides/pay-for-hosting-with-bitcoin).

## Sources and further reading

- [Bitcoin Core: Download](https://bitcoincore.org/en/download/)
- [Bitcoin.org: Running a Full Node](https://bitcoin.org/en/full-node)
- [Bitcoin Core documentation: Reduce Traffic](https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-traffic.md)
- [Bitcoin Core documentation: JSON-RPC Interface](https://github.com/bitcoin/bitcoin/blob/master/doc/JSON-RPC-interface.md)

**Put it into practice**

- [**Bitcoin VPS**: VPS plans you can pay for in BTC.](https://lowcostserv.com/bitcoin-vps)
- [**Bitcoin dedicated servers**: Whole machines paid in BTC and four other coins.](https://lowcostserv.com/bitcoin-dedicated-servers)
- [**Crypto VPS**: Five coins compared: fees, speed, privacy.](https://lowcostserv.com/crypto-vps)

**Keep reading**

- [**Your access key: an account with no email or password**: Getting started · 4 min read](https://lowcostserv.com/guides/access-key)
- [**How to connect to a Linux server with SSH**: Getting started · 3 min read](https://lowcostserv.com/guides/connect-to-a-server-with-ssh)
- [**How to secure a new Linux server in 15 minutes**: Security · 4 min read](https://lowcostserv.com/guides/secure-a-new-linux-server)

## Read next Two guides to follow this one.

[All crypto and payments guides](https://lowcostserv.com/guides/topic/payments)

- [USDT on TRC‑20 or ERC‑20: why the network matters](https://lowcostserv.com/guides/usdt-trc20-or-erc20): The same dollar-pegged coin lives on several blockchains. Why a mismatch loses money, and how to send USDT on Tron (TRC-20), the network we accept. (Crypto and payments, 3 min read, Nov 12, 2026)
- [How to pay for hosting with Bitcoin](https://lowcostserv.com/guides/pay-for-hosting-with-bitcoin): What happens between “pay” and “confirmed”: amounts, network fees, confirmations and the mistakes that delay a payment. (Crypto and payments, 4 min read, Nov 12, 2026)

## One click, one payment, one server.

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

- **No KYC**: No email, no ID
- **No DMCA**: Notices not acted on
- **Crypto friendly**: BTC, ETH, XMR, USDT, SOL
- **Unmetered**: On every plan

---

LowCostServ rents cloud VPS, dedicated servers, GPU servers and Windows RDP servers and registers domain names, with no identity check and payment in crypto. Every plan and price: https://lowcostserv.com/pricing.md · The company in facts: https://lowcostserv.com/about.md · Index of the site for language models: https://lowcostserv.com/llms.txt
