简体   繁体   English

SSH密钥停止在源代码树中的MAC OS Sierra 10.12.3上运行

[英]SSH key stop working on MAC OS Sierra 10.12.3 in source tree

在此输入图像描述

Source tree was working fine using SSH but after upgrading my mac to 'OS Sierra' it stop working. 源代码树使用SSH工作正常但在将我的mac升级到'OS Sierra'之后它就停止了工作。 Giving Error Permission Denied. 拒绝错误权限。

Please Help 请帮忙

Open a terminal and type "ssh-add", when prompted type in the password for your SSH RSA key. 打开终端并输入“ssh-add”,当提示输入SSH RSA密钥的密码时。 To verify if you have an SSH RSA key in your profile, type "ssh-add -L". 要验证配置文件中是否有SSH RSA密钥,请键入“ssh-add -L”。 After upgrading to Sierra it will say something like "The agent has no identities". 升级到Sierra之后会说“代理没有身份”。

macOS Sierra changed the agent behavior for ssh. macOS Sierra更改了ssh的代理行为。 You can restore the old behavior, though. 但是,您可以恢复旧的行为。 Add this to the top of ~/.ssh/config : 将它添加到~/.ssh/config的顶部:

AddKeysToAgent yes

If you would like to store key passphrases in the keychain, you can also add: 如果您想在钥匙串中存储密钥密码,您还可以添加:

UseKeychain yes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM