Ssh – created pub/priv keys using putty, created .ssh folder and authorized_keys, still not working

puttyssh

  1. created public/private keys using puttygen on my computer.
  2. put the public key in the .ssh/authorized_keys folder on the server
  3. setup pageant.exe to use the pk on my computer.
  4. when I run pageant, and connecting using putty it still asks me for my password.

what am I missing?

I did do a:
chmod 700 on .ssh folder
chmod 600 on authorized_keys file

thanks!

Best Answer

Check your /var/log/secure or /var/log/auth on the Linux server for information why the key is not accepted.

Also, is the .ssh directory in the homedir of (and owned by) the user you are using to connect?

If you want to connect with the root user, it might be disabled in /etc/ssh/sshd_config.