Comment on page
Once you've decided on a server and have login details. There's a bit of an infrastructure setup that's required to get the server production ready.
Note that there are always many ways to accomplish tasks and each sysadmin can have their own preference for tools, scripts and automation. This guide follows basic principles to help entry-level users.
One of the most important things when running a live production system with funds on it is to keep it secure. By following common principles and best practices you can ensure you're protected from most hack attempts and at least make it difficult for bad actors to infiltrate your systems.
Generate ssh keys so that you can only login to your server with keys and never a clear-text password.
Add your public key to authorized_keys on the server
echo 'public key from previous step' >> ~/.ssh/authorized_keys
Disable password based login on the server and restart sshd
// once configuration is updated restart sshd
systemctl restart sshd
Your server should only have ports open that are crucial to the functioning of your nodes and your bridge.
sudo apt install ufw
Allow ports that are required for Bitcoin/Lightning/Stacks nodes and bridge app.
ufw allow ssh
ufw allow 8332
ufw allow 8333
ufw allow 9735
ufw allow 20443
ufw allow 20444
ufw allow 9002