ssh on machine
allow udp to ports 500 and 4500
sudo ufw allow 500/udp
sudo ufw allow 4500/udp
install docker
sudo apt-get install docker.ioturning up the rancher server
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stablesave on current server -> create new host -> copy the script and past on terminal (something like this)
sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.11 http://1.2.3.4:8080/v1/scripts/37DA0222034C93A59F4D:1577750400000:3zfCbPvLb3qbQVPbVMFRXuRuVYk