Password-less SFTP/SSH


Keep forgetting how to...

  1. Use e.g. PuTTYgen to generate a key.

💡 I recommend filling out "Key comment" to prevent a rather messy and uninformative authorized_keys file...

  1. Add public key on server:
mkdir -pm 700 ~/.ssh
vim ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

Things should then work as long as the private key is added to Pageant, WinSCP config, or whatever, before trying to connect.