在设定sshd的时,若想要关闭sshd登入的认证,请修改sshd_config
[root@localhost ~]# vim /etc/ssh/sshd_config
57 # To disable tunneled clear text passwords, change to no here!
58 #PasswordAuthentication yes
59 #PermitEmptyPasswords no
60 PasswordAuthentication no
#请把PasswordAuthentication yes 改为no
详细内容请参考http://blog.faq-book.com/?p=2883