Private Servers Deployment
This guide walks you through connecting and deploying blockchain node to your private server on Blockops.
Prerequisites
Ensure that SSH server is running on your device.
If your SSH server runs on a non-default port (not 22), update the SSH port in the Blockops UI to match.
Ensure your deployment user does not require a password for sudo commands.
You have two options:
Create a dedicated passwordless user for Blockops.
Allow passwordless sudo for your user by editing the sudoers file:
sudo visudoAdd this line (replace
youruserwith your actual username):youruser ALL=(ALL) NOPASSWD:ALL
Authentication Methods
Password-Based SSH Authentication: you'll need:
username: the username on your device
password: the password for that user
port: the SSH port (default: 22)
Private Key Authentication
Create a new SSH key pair: run this command on your terminal
ssh-keygen -t rsa -b 4096 -C "[email protected]"When prompted:
File path: Press Enter to save to default (~/.ssh/id_rsa)
Passphrase: Press Enter to create a key without a passphrase
Add the public key Copy the contents of
~/.ssh/id_rsa.pubinto~/.ssh/authorized_keys
Connecting Your Private Server to Blockops
Log in
Go to app.blockops.network
Sign in or create an account
Select deployment options
Choose the network you want to deploy
Select Baremetal as the cloud provider
In the Authentication section, check the private server field and follow the on-screen instructions.
Install Autossh
On your private server, install autossh:
brew install autosshsudo apt update && sudo apt install -y autosshEstablish the SSH Tunnel
Run this command once (to add blockops.sh:7777 to known_hosts):
sudo autossh -M 0 -R example71:22:localhost:22 blockops.sh -p 7777Then, re-run the same command to establish the persistent connection
sudo autossh -M 0 -R example71:22:localhost:22 blockops.sh -p 7777This creates a private, secure tunnel between your server and Blockops.
Deploy Your Node
Return to the Blockops UI and click Continue to finalize the connection and deploy your node.
Last updated
Was this helpful?