当UsePAM设置为“ no”时,SSH公钥身份验证失败
要禁用密码身份验证,请在我的计算机中设置以下值 sshd_config ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no 当我尝试使用私钥登录时,我得到 Permission denied (publickey). 如果更改UsePAM为yes,则可以使用我的私钥登录。为什么? 我正在从OSX连接到Ubuntu 12.04 64位主机 ssh -i ~/.ssh/deploy -l deploy localhost -p 2222 -v 这是详细的ssh输出: OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/<user>/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * …