How can I set PasswordAuthentication as "no" (for security reasons)?

How can I set PasswordAuthentication as "no" (for security reasons)?


Here is how the PasswordAuthentication variable in /etc/ssh/sshd_config can be set to "no":

1.  Change PasswordAuthentication as no in the /etc/ssh/sshd_config file.
2.  Restart the SSH Daemon using the command /etc/rc.d/sshd restart.