我只允许通过 ssh 进行 pubkey 身份验证。我怎样才能仍然使用密码登录?

我只允许通过 ssh 进行 pubkey 身份验证。我怎样才能仍然使用密码登录?
vi /etc/ssh/sshd_config
egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#'
    ListenAddress 0.0.0.0
    PermitRootLogin without-password
    PubkeyAuthentication yes
    PasswordAuthentication no

在 OpenBSD 5.1 服务器上。但我仍然可以使用 FileZilla 登录,而且 FileZilla 只知道我的密码 AFAIK(或者不知道?)。

如何限制任何 ssh/scp/sftp 访问仅接受密钥身份验证?

更新:clinet 端是 Scientific Linux 6.3,据我所知,密钥未缓存。

答案1

假设您的操作系统是 Microsoft Windows,如果您已使用 putty 等连接服务器,则 SSH 代理(如 pageant)可能已缓存您的密钥。看Filezilla wiki 上的此页面了解详情。所以你的服务器可能是根据需要设置的。

相关内容