SSH 密钥停止在源代码树中的 MAC OS Sierra 10.12.3 上工作
SSH key stop working on MAC OS Sierra 10.12.3 in source tree
源代码树在使用 SSH 时工作正常,但在将我的 mac 升级到 'OS Sierra' 后它停止工作。
授予错误权限被拒绝。
请帮忙
打开终端并键入 "ssh-add",出现提示时键入 SSH RSA 密钥的密码。
要验证您的配置文件中是否有 SSH RSA 密钥,请键入 "ssh-add -L"。升级到 Sierra 后,它会显示类似 "The agent has no identities".
的内容
macOS Sierra 更改了 ssh 的代理行为。不过,您可以恢复旧行为。将此添加到 ~/.ssh/config
的顶部:
AddKeysToAgent yes
如果您想在钥匙串中存储密钥密码,您还可以添加:
UseKeychain yes
源代码树在使用 SSH 时工作正常,但在将我的 mac 升级到 'OS Sierra' 后它停止工作。 授予错误权限被拒绝。
请帮忙
打开终端并键入 "ssh-add",出现提示时键入 SSH RSA 密钥的密码。 要验证您的配置文件中是否有 SSH RSA 密钥,请键入 "ssh-add -L"。升级到 Sierra 后,它会显示类似 "The agent has no identities".
的内容macOS Sierra 更改了 ssh 的代理行为。不过,您可以恢复旧行为。将此添加到 ~/.ssh/config
的顶部:
AddKeysToAgent yes
如果您想在钥匙串中存储密钥密码,您还可以添加:
UseKeychain yes