Setup SSH for Accessing Remote Server Without Password


On the Remote Server Logged in As User or as root but in users home

sudo mkdir ~/.ssh
sudo chmod 700 ~/.ssh && chmod 600 ~/.ssh/*

On you local (desktop) assuming you have already created your GPG Keys

cat ~/.ssh/id_rsa.pub | ssh root@example.com 'cat - >> ~/.ssh/authorized_keys'

You may also like...