- PuTTYgen SSH-2 RSA Key with 2048 bits
- Save public key and private key (ppk)
- Copy the text field of Public Key to authorized_keys on remote server
- Set Putty Configuration "Connection -> Data, Auto-login username"
- Set Putty Configuration "Connection -> SSH -> Auth, Private key file"
- On remote server
- chmod 700 ~/.ssh
- chmod 600 ~/.ssh/authorized_keys
- chown $USER:$USER ~/.ssh -R
- change /etc/ssh/sshd_config so it contains AuthorizedKeysFile %h/.ssh/authorized_keys
- sudo service ssh restart