我正在检查我们一台服务器的安全性,并希望了解SSH在创建或使用密码时是否可以请求公钥,如果没有密钥,则询问响应。
我似乎想不出该怎么做。有什么想法吗?
发布于 2016-10-06 16:28:21
这就是它的工作方式。查一下手册。请注意,public key authentication
先于challenge-response authentication
。
来自“管理”中的AUTHENTICATION
部分:
The methods available for authentication are: GSSAPI-based authentication, host-based authentication, public key authentication,
challenge-response authentication, and password authentication. Authentication methods are tried in the order specified above,
though protocol 2 has a configuration option to change the default order: PreferredAuthentications.
发布于 2016-10-06 16:28:59
尝试使用详细模式的ssh。
ssh -v user@server
你应该看到这样一条线:
debug1: Authentications that can continue: publickey,keyboard-interactive
可以在服务器和客户端禁用某些身份验证方法。A你可以改变订单。
https://serverfault.com/questions/807528
复制相似问题