# How to set up LND on a VPS?

> How to set up LND on a VPS in 8 steps: bitcoind with ZMQ, lnd.conf, lncli create. LND needs about 2 GB of RAM; Leaf costs $3.50 a month.

- URL: https://blockgilt.com/guides/how-to-set-up-lnd-on-a-vps/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

LND needs a Bitcoin Core backend with ZMQ, a short lnd.conf and a wallet you create once. The commands below come from the Lightning Labs documentation.

**Quick answer — How to set up LND on a VPS?**

To set up LND on a VPS, run a synced Bitcoin Core with ZMQ enabled, download and verify the lnd release, write lnd.conf with bitcoin.node=bitcoind, start lnd and create the wallet with lncli create. LND needs about 2 GB of RAM. **Blockgilt** sizes Leaf for it: 2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic, $3.50 a month.

**In brief**

- LND needs a synced Bitcoin Core backend with zmqpubrawblock and zmqpubrawtx on separate addresses.
- LND uses about 2 GB of RAM; a pruned backend is allowed.
- Verify the manifest with gpg and the archive with its SHA-256 before installing.
- lnd.conf sets bitcoin.node=bitcoind and listens on port 9735.
- lncli create prints a 24-word seed once; channel.backup protects channels.
- Leaf costs $3.50 a month; Gilt costs $12.61.

## What does LND need on a VPS?

*LND requirements from the Lightning Labs documentation, with the Blockgilt plan that runs it*

| Item | Figure |
| --- | --- |
| RAM for LND | about 2 GB |
| Bitcoin backend, pruned | 7 GB minimum disk; Leaf has 80 GB NVMe |
| Bitcoin backend, full | 0.9 TB with an index; Bullion has 1.5 TB NVMe |
| Lightning port | 9735 (open inbound) |
| Leaf | 2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic, $3.50 a month on 12 months |
| Gilt | 4 vCPU, 8 GB RAM, 250 GB NVMe, 8 TB traffic, $12.61 a month on 12 months |

*Prices checked on November 10, 2026.*

## What are the steps to set up LND on a VPS?

1. **Run a synced Bitcoin Core** — Install and sync bitcoind first, pruned or full. Wait for verificationprogress to approach 1 before you start LND.
2. **Enable RPC and ZMQ in bitcoin.conf** — Set server=1, an RPC user and password, and two ZMQ endpoints: zmqpubrawblock and zmqpubrawtx. Each must use its own address. Restart bitcoind.
3. **Download the LND release** — Take the linux-amd64 archive, the manifest and a signature from the GitHub release page of lightningnetwork/lnd.
4. **Verify the manifest and the archive** — Import the signing key, verify the manifest signature with gpg, then compare the archive SHA-256 with the manifest.
5. **Install lnd and lncli** — Extract the archive and copy the two binaries to /usr/local/bin.
6. **Write lnd.conf** — Create ~/.lnd/lnd.conf with the Bitcoin section pointing at bitcoind, the same RPC login and the same ZMQ addresses.
7. **Start lnd and create the wallet** — Run lnd, then lncli create. It asks for a wallet password and prints a 24-word seed. Write the seed on paper and keep it off the server.
8. **Fund, open channels and back up** — Send coins to an address from the wallet, open channels, and copy channel.backup to another machine each time a channel opens or closes.

## Which Blockgilt plan fits?

Leaf runs LND with a pruned node; Gilt leaves room for BTCPay Server beside it.

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Leaf | 2 vCPU · 4 GB RAM · 80 GB NVMe | — | $21 | $33.60 (−20%) | $42 (−50%) |
| Gilt | 4 vCPU · 8 GB RAM · 250 GB NVMe | $25.22 | $75.66 | $121.05 (−20%) | $151.32 (−50%) |

In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC

**Before you pay**

- Minimum top-up $25. Top up once in crypto, then buy any plan from your balance.
- Credit on your balance does not expire and renews any of your VPS. When a top-up is only made to reach the minimum, the unspent part comes back on request within 30 days of payment, in USDT or USDC. The rest of a balance is not paid out unless the law requires it.
- Credited once your payment is checked on the blockchain. Typical network confirmation time: BTC ≈ 20 min · USDT TRC-20 ≈ 1 min · USDT ERC-20 ≈ 5 min · USDC ERC-20 ≈ 5 min · ETH ≈ 5 min · SOL ≈ 1 min · LTC ≈ 15 min · XMR ≈ 20 min

## Which VPS plan runs LND?

Leaf runs LND with a pruned Bitcoin Core, and Gilt does the same with room for BTCPay Server on top.

LND itself is light: the Lightning Labs documentation allows a pruned bitcoind backend and warns that aggressive pruning can cost performance because LND has to fetch some blocks elsewhere. The 4 GB of RAM on Leaf covers LND (2 GB) and a pruned bitcoind with a modest cache. According to Blockgilt’s sizing of 10 November 2026, a pruned backend at the 550 MiB floor plus 15 GB of chainstate uses well under a fifth of Leaf’s 80 GB NVMe. If you route heavily or want a full backend, move to Bullion. The network has 13,777 nodes and 22,680 channels holding 2,530.94 BTC at 21 October 2026, according to mempool.space. See [VPS for Lightning node](https://blockgilt.com/vps-for-lightning-node/ "Which VPS do you need for a Lightning node?") for the sizing in detail, [LND vs Core Lightning](https://blockgilt.com/lnd-vs-core-lightning/ "Should you run LND or Core Lightning on a VPS?") if you have not chosen an implementation, and [how to run a pruned Bitcoin node](https://blockgilt.com/guides/how-to-run-a-pruned-bitcoin-node/ "How to run a pruned Bitcoin node?") for the backend.

## How do you configure bitcoind for LND?

Configure bitcoind with `server=1` and two separate ZMQ endpoints, `zmqpubrawblock` and `zmqpubrawtx`, bound to localhost.

The LND installation guide says each ZMQ option must use its own address so notifications arrive reliably, and that `rpcserialversion` must be 1 or unused. The addresses you put in bitcoin.conf must match the ones LND uses. Keep RPC and ZMQ on 127.0.0.1: nothing outside the VPS needs them.

*The file ~/.bitcoin/bitcoin.conf*

```ini
server=1
rpcuser=REPLACEME
rpcpassword=REPLACEME
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333
```

## How do you download and verify LND?

Download the linux-amd64 archive plus the manifest and a signature, verify the manifest with gpg, then check the archive hash against the manifest.

LND releases are signed by several maintainers; the release page lists the key of each. The procedure in the release notes is: import a key, run `gpg --verify` with the signature and the manifest, recompute the archive hash with `shasum -a 256` and make sure it matches the manifest entry exactly. The block below uses the release at the time of writing; replace the version with the latest on the release page.

*Download, verify and install lnd*

```bash
VER=v0.21.6-beta
wget https://github.com/lightningnetwork/lnd/releases/download/$VER/lnd-linux-amd64-$VER.tar.gz
wget https://github.com/lightningnetwork/lnd/releases/download/$VER/manifest-$VER.txt
wget https://github.com/lightningnetwork/lnd/releases/download/$VER/manifest-roasbeef-$VER.sig
curl https://raw.githubusercontent.com/lightningnetwork/lnd/master/scripts/keys/roasbeef.asc | gpg --import
gpg --verify manifest-roasbeef-$VER.sig manifest-$VER.txt
shasum -a 256 lnd-linux-amd64-$VER.tar.gz
grep lnd-linux-amd64 manifest-$VER.txt
tar xzf lnd-linux-amd64-$VER.tar.gz
sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-amd64-$VER/lnd lnd-linux-amd64-$VER/lncli
```

## What goes in lnd.conf?

lnd.conf needs the mainnet switch, the bitcoind backend, the RPC login and the two ZMQ addresses.

The file lives in `~/.lnd/lnd.conf` on Linux. Options sit under the `[Application Options]`, `[Bitcoin]` and `[Bitcoind]` headings. `listen` defaults to port 9735, and `externalip` advertises your address to the network. Inbound P2P ports stay open, so a node can accept peers: 8333 for Bitcoin, 9735 for Lightning, 18080 for Monero, and any port you open in your own firewall. The RPC listener `rpclisten` defaults to localhost on 10009, which is where it should stay.

*~/.lnd/lnd.conf*

```ini
[Application Options]
alias=my-node
listen=0.0.0.0:9735

[Bitcoin]
bitcoin.mainnet=true
bitcoin.node=bitcoind

[Bitcoind]
bitcoind.rpchost=127.0.0.1
bitcoind.rpcuser=REPLACEME
bitcoind.rpcpass=REPLACEME
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
```

*Start lnd and create the wallet*

```bash
lnd
lncli create
lncli unlock
lncli getinfo
```

## How do you protect the seed and the channels?

Write the 24-word seed on paper and back up channel.backup, because the seed alone does not recover channel funds.

`lncli create` asks for a wallet password and an optional seed passphrase, then prints the seed once. After each restart you run `lncli unlock`. The static channel backup file is `~/.lnd/data/chain/bitcoin/mainnet/channel.backup`; it is updated when a channel opens or closes, and `lncli exportchanbackup --all --output_file=channel.backup` writes a copy. Restoring needs the seed, and it asks your peers to force close, so treat it as a last resort. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key. The full routine is in [how to back up a Lightning node](https://blockgilt.com/guides/how-to-back-up-a-lightning-node/ "How to back up a Lightning node?").

> **Never use --noseedbackup on mainnet** The LND documentation warns that without a seed backup there is no way of getting the funds back if the wallet file is lost.

## Frequently asked questions

### How much RAM does LND need?

About 2 GB, plus what bitcoind uses on the same server. A 4 GB plan covers both with a pruned backend.

### Can LND run on a pruned node?

Yes. LND allows a pruned backend, with the caveat that aggressive pruning can cost performance.

### Which port does LND use?

Port 9735 for peers. The RPC port 10009 stays on localhost.

### What happens if I lose the server?

You restore from the seed and channel.backup, and peers force close the channels. Keep both off the VPS.

### Does Blockgilt run my node for me?

No. You run LND yourself. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.

**Verdict**

- **Blockgilt Leaf is the better choice if** LND runs next to a pruned Bitcoin Core: 2 GB of RAM fits in 4 GB, for $3.50 a month on 12 months.
- **Gilt is the better choice if** BTCPay Server shares the node, at $12.61 a month.

## Sources

1. [LND installation guide (binary release, bitcoind and ZMQ)](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md) — Lightning Labs (checked 2026-11-10)
2. [LND release verification](https://github.com/lightningnetwork/lnd/blob/master/docs/release.md) — Lightning Labs (checked 2026-11-10)
3. [LND releases](https://github.com/lightningnetwork/lnd/releases) — Lightning Labs (checked 2026-11-10)
4. [Sample lnd.conf](https://github.com/lightningnetwork/lnd/blob/master/sample-lnd.conf) — Lightning Labs (checked 2026-11-10)
5. [LND wallet management](https://docs.lightning.engineering/lightning-network-tools/lnd/wallet) — Lightning Labs (checked 2026-11-10)
6. [LND recovery and static channel backups](https://github.com/lightningnetwork/lnd/blob/master/docs/recovery.md) — Lightning Labs (checked 2026-11-10)
7. [Lightning Network statistics](https://mempool.space/graphs/lightning/nodes-networks) — mempool.space (checked 2026-11-10)

**Run LND on a Leaf** Port 9735 open and 80 GB of NVMe for $3.50 a month on 12 months. [Order Leaf](https://blockgilt.com/app/checkout/?plan=leaf&from=how-to-set-up-lnd-on-a-vps&lang=en) · [Compare all plans](https://blockgilt.com/pricing/ "How much does a VPS for a crypto node cost?")

---

Blockgilt: Blockgilt is a VPS provider for crypto nodes and trading bots, paid in crypto with no ID upload and operated by DomaineGoat LLC, a Panama-registered company. Its eight NVMe plans, from 80 GB to 6 TB, are sized for Bitcoin, Lightning, Monero and Ethereum nodes, Electrum servers, BTCPay Server, Freqtrade and Hummingbot, in Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan). On the 12-month term, each plan is priced at least 25% under a named comparable plan, chosen among 72 crypto-accepting VPS hosts read on 10 November 2026.
