ssh-keygen -t rsa
ssh [email protected] mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
nano ~/.ssh/config
Host remoteserver
User user
HostName remote.com
IdentityFile ~/.ssh/id_rsa
Port 22
ssh remoteserver