1. Preparing the server Install git sudo apt install git-all Generate Server's SSH public key ssh-keygen -t rsa -b 4096 -C "deploy" cat ~/.ssh/id_rsa.pub