Friday, August 19, 2011

ssh passwordless authentication ubuntu 10.04LTS server

setting up my mongodb test machine I'd like to ssh into it without using a password.
I followed this great tutorial: http://www.debian-administration.org/articles/152
however, I had to uncomment the AuthorizedKeysFile line on my mongodb test machine's /etc/ssh/sshd_config file. Now I can append authorized keys to this file for accessing the server.
While I'm there I'm also disabling root login.
Now I can follow along with the aforementioned tutorial and it works.
Now that I can login without a password I'm going back to /etc/ssh/sshd_config and adding the line:
PasswordAuthentication no

No comments:

Post a Comment