DISQUS

Daily Iteration: Howto: Passwordless SSH authentication with Putty

  • Hugo Rodrigues · 1 year ago
    great post!
  • garrido · 1 year ago
    Thanks Hugo, glad to help!
  • thinkweird · 11 months ago
    Nice! Just what I need!
  • testsubjectalpha · 3 months ago
    Hi!
    Thanks for this very detailed post!

    Just wanted to add one more thing: for these steps to work, the SSH server must support passwordless logins also!

    To enable this (and if you're doing this on your own machine/s), edit /etc/ssh/sshd_config as root. In it, uncomment the lines that say "PubkeyAuthentication yes". Also, puttygen.exe by default generates SSH2-RSA keys, so also uncomment the "RSAAuthentication yes" line

    Thanks again!
  • licitatii · 3 months ago
    "testsubjectalpha" is right abut it.
  • Parag Shah · 2 months ago
    Thanks, your post helped me implement passwordless authentication. I would like to add one thing which I have not seen in a lot of places:

    It has been documented that the .ssh directory in the user's home directory on the server must have a permission of 700.

    However, I realized that not only the .ssh directory, but also the user's home directory cannot give write access to 'group', and 'everyone'. The user's home directory on the server must have permission set to either 700 or 744 (704, 740, etc).
  • garrido · 2 months ago
    Thanks Parag, very helpful for any troubleshooting that might come up int he future...