ssh generate

ssh-keygen -t rsa -C "your_email@example.com"

git config --global user.name "Your Name"
git config --global user.email you@example.com

cat ~/.ssh/id_rsa.pub | (ssh root@host "cat >> ~/.ssh/authorized_keys")

# если проблемы

eval $(ssh-agent)
ssh-add