让sshd只支持密匙连接
10月 31st, 2007编辑文件/etc/ssh/sshd_config
修改以下选项
Protocol 2
PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
编辑后保存,重启ssh
service sshd restart
编辑文件/etc/ssh/sshd_config
修改以下选项
Protocol 2
PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
编辑后保存,重启ssh
service sshd restart