OS X 系统 10.8(如果有的话)。
我为内置启用了密码身份验证sshd,因此更改了设置PasswordAuthentication:
# To disable tunneled clear text passwords both PasswordAuthentication and
# ChallengeResponseAuthentication must be set to "no"
PasswordAuthentication yes
PermitEmptyPasswords yes
# Change to no to disable s/key passwords
ChallengeResponseAuthentication yes
Run Code Online (Sandbox Code Playgroud)
这确实启用了密码身份验证,但由于某种原因它似乎也影响了键盘身份验证。
如果我尝试ssh进入机器(没有选项),它会永远挂起。如果我使用ssh -vvv,我可以看到它在发送键盘交互数据包后挂起:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: …Run Code Online (Sandbox Code Playgroud)