在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。它似乎甚至没有被执行(添加简单"触摸a-logfile"行,从不调用)。
有关如何进一步调试的任何想法或提示?
由于
答案 0 :(得分:1)
仅供参考:已解决,ssh-agent需要设置DISPLAY env var。
的详细信息