我希望 sshd 验证用户的公钥,然后提示输入他们的密码,而不仅仅是其中一个。这可能吗?
ssh password authentication public-key
如何将 sshd 设置为需要私钥和密码?
在 /etc/ssh/sshd_config 中,我目前有:
RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication yes
但显然这允许用户使用私钥或密码登录。
ubuntu ssh password private-key
password ×2
ssh ×2
authentication ×1
private-key ×1
public-key ×1
ubuntu ×1