我在一台旧笔记本电脑上安装了 Debian Squeeze,作为测试平台。我安装了 OpenSSH,并进行了编辑,/etc/ssh/sshd_config
以使用 ssh 密钥并禁止密码验证。
但是,我可以通过 serFISH.com 使用密码登录。输入密码后,我得到:
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:~$`
这怎么可能?
答案1
作为基本规则 :
修改配置文件后,不要忘记重新启动/重新加载/停止启动服务。
此外,在修改配置文件之前,您应该始终对其进行手动备份:当出现问题时,它可以缩短回滚时间。