如何将 sshd 设置为需要私钥和密码?
在 /etc/ssh/sshd_config 中,我目前有:
RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication yes
但显然这允许用户使用私钥或密码登录。
ubuntu ssh password private-key
password ×1
private-key ×1
ssh ×1
ubuntu ×1