在OS X 10.9.5下,由于git exit status: 128
,我不断遇到Permission denied (public key)
错误。
密钥在版本控制系统上是可验证的,但每当我更改应用程序时,我需要:
ssh-add ~/.ssh/id_rsa
让部署过程正常运行。
虽然不是很麻烦,但它表示某些不良配置可能会导致其他权限问题。
答案 0 :(得分:0)
以下是一些帮助我调试SSH-Agent问题的文档:https://developer.github.com/guides/using-ssh-agent-forwarding/
将详细标志添加到SSH帮助我解决了许多问题。
另外,试试这个:https://github.com/capistrano-plugins/capistrano-ssh-doctor
除此之外,我不确定我是否会冒这个问题的答案。祝你好运!
答案 1 :(得分:0)
您还可以尝试 Github 文档页面 Adding your SSH key to the ssh-agent 中描述的以下内容:
<块引用>如果您使用的是 macOS Sierra 10.12.2 或更高版本,则需要修改 ~/.ssh/config 文件以自动将密钥加载到 ssh-agent 中并将密码存储在您的钥匙串中。
所以要么创建或编辑 ~/.ssh/config
,然后添加:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/some_id
这样你就不需要额外的包了。