Follow Github's SSH guide
Run the following command:
ssh -T git@github.com
Run the following command, but replace x with server IP:
cat ~/.ssh/id_rsa.pub | ssh root@x.x.x.x "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
To get setup from scratch, run this command in the Terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && git clone git@github.com:ItsJonQ/dotfiles.git ~/dotfiles
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim