Thursday, August 6, 2009

disabling clear text password access to ssh

Disable Password Authentication

To disable password authentication,
vi /etc/ssh/sshd_config 

replace it with a line that looks like this:
#PasswordAuthentication yes
PasswordAuthentication no

/etc/init.d/ssh restart

make certain that u have at least one public ssh key in the relevant users .ssh/authorized_keys file

No comments:

Post a Comment