我已经在旧笔记本电脑上安装Debian Squeeze来充当testing平台。 我已经安装了OpenSSH并编辑了/etc/ssh/sshd_config来使用ssh密钥并禁止密码validation。
但是,我可以通过serFISH.com用密码login。 在input密码时,我得到:
Connecting as lemmy@*myipaddress* on port 5001... /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old lemmy@my*ipaddress*'s password: Linux saturn 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Aug 26 11:20:12 2012 from 78.47.79.193 lemmy@saturn:~$`
这怎么可能?
作为基本规则 :
修改configuration文件后不要忘记重新启动/重新加载/停止启动服务。
另外,在修改configuration文件之前,您应该始终执行configuration文件的手动备份:当某些事情出错时缩短回滚时间。