Skip to main content

Locking down ssh (keys only)


# cp /etc/ssh/sshd_config /etc/ssh/sshd_config-20120522
# sed -i -e 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
# service sshd restart


I guess when I set out to document this I thought the task was more challenging.  ;-)

I went this route as I am sick of worrying about the script kiddies pounding on my system all day long.  I also scan the secure log every minute for random connection attempts and then shun them at my firewall.  I'll save that for another post.

Comments