Connect to your server (Debian) without password

On your MAC/PC:

  • ssh-keygen -t rsa
  • ssh [USER]@[SERVERIP] -p [PORT] mkdir -p .ssh
  • cat id_rsa.pub | ssh [USER]@[SERVERIP] -p [PORT] 'cat >> .ssh/authorized_keys'

On your server:
* nano /etc/ssh/sshd_config * Check that you have:

RSAAuthentication yes  
PubkeyAuthentication yes  
AuthorizedKeysFile      %h/.ssh/authorized_keys  

On you MAC/PC:
* ssh [USER]@[SERVERIP] -p [PORT] -> No more password required!!

Sources: