Node on Hetzner server
A guide for installing your Swingby node on Hetzner dedicated servers.
- 2.Setup your telegram BOT with following this readme: => https://github.com/SwingbyProtocol/node-installer
- 3.Install your telegram BOT to your AX-61-NVMe server.
For more details about "staking", let's see here 👇
Why we choose the Hetzner server? The Hetzner Cloud is one of the most cost-effective servers for running swingby nodes in your local infrastructure package. I have a root user who has RSA key authentication as a bootstrap. Disk mounts are basically mounted at / (root). Basically, telegram BOT uses root to connect to the server, so this choice is much easier than other cloud services.
$ git clone https://github.com/SwingbyProtocol/node-installer && cd node-installer
$ ssh-keygen -t rsa -b 4096 -f ./data/ssh_key
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): <- (should be empty)
There are 2 files are generated on your local machine.
- ./data/ssh_key <- (this is a SSH private key, it should be backed up)
- ./data/ssh_key.pub <- (this is a SSH pubkey for access to your server)
Also, you have to grant permissions with this command.
$ chmod 600 ./data/ssh_key
AX-61 NVMe has a 1.92TB disk (RAID1), The Swingby node requires 1.3TB for the BTC-ETH bridge, 1.4TB for the BTC-BSC bridge (full installation using with your local_infura ) local_infura means your node will be connected to self-hosting Geth (BSC) and 2 blockbooks containers, therefore, your server has to total 6 containers running. (bitcoind, geth/bsc, blockbook-btc, blockbook-eth/bsc, swingby node)
- You can put ./data/ssh_key.pub file texts into the server setup interface.
- you have to make a new directory
- (Prerequisite: you have to create a telegram BOT via the @Botfather and obtain a BOT_TOKEN. Here's a tutorial)
- COPY and PASTE to your command line like this
$ export BOT_TOKEN=1716737416:ACEoPHFFlCAGiD2xGQl3Zk_wCoOD9P3Igk0
Example of Docker for MAC OSX
$ chmod +x scripts/install.sh && scripts/install.sh
- Hetzner cloud always uses root to log in via SSH session. then, your can going forward with type 'none'
- This command will start the process of move out your telegram BOT to your server
Finally, you are ready to install on the Swingby node!!