Running a node on a VPS server without active console/ssh session

I’ve been following setup instructions, and got the node running and bootstrapped. The problem is that if my ssh session ends, the node/server stops. I assume there’s a way to keep it running that doesn’t depend on the terminal session?

Easy way : run it inside tmux

Proper way: learn about Linux services / systemd etc.

Collin’s tutorial for AWS has this covered very well;

Scroll down to “set up AvalancheGo as a service”

Note that you might need to change user name and directories in the service file.

(Also, the upgrade script further down is very practical.)

1 Like