在 Mac OS 10.7 和 10.8(单独的计算机)上,我一直在使用 ssh-askpass 脚本来验证 SSH 密钥的使用:
https://github.com/TimZehta/mac-ssh-confirm
但是,这似乎不适用于 Mavericks/10.9?
普通的 SSH 密钥可以正常工作:
box ~$ ssh-add -D
All identities removed.
box ~$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /Users/user/.ssh/id_rsa:
Identity added: /Users/user/.ssh/id_rsa (/Users/user/.ssh/id_rsa)
box ~$ ssh remotehost
remotehost ~$
^D
但是使用-c,它不再起作用..
box ~$ ssh-add -D
All identities removed.
box ~$ ssh-add -c ~/.ssh/id_rsa
Enter passphrase for /Users/user/.ssh/id_rsa:
Identity added: /Users/user/.ssh/id_rsa (/Users/user/.ssh/id_rsa)
The user must confirm each use of the key
box ~$ ssh remotehost
Agent admitted failure to sign using the key.
Password for user@remotehost:
/usr/libexec/ssh-askpass 由 root 拥有并具有 +x。它似乎甚至没有被执行(添加了简单的“touch a-logfile”行,从未调用过)。
关于如何进一步调试的任何想法或提示?
谢谢