我最近从Ubuntu盒子切换到Mac,我面临着这个奇怪的ssh问题,我无法理解为什么?
每次我通过私钥重启/重启时,使用ssh-add添加了ssh列表,保持刷新状态
ssh-add -l
The agent has no identities.
我不确定这是否是 ssh-add
的理想行为,但我所知道的是 I wasn't doing this in my Ubuntu box neither on my earlier Mac machine to the top of it any newly created ssh keys too aren't getting added to the ssh-add list
现在我不确定为什么新的Mac不能像上面那样工作
无论如何要解决这个问题,我必须每次(手动)添加我的身份
ssh-add private-key
现在任何人都可以解释这种奇怪的行为和解决它的可行解决方案的原因是什么
为什么我需要这个是我有一个Capistrano脚本
set :ssh-options,{"forward" => true }
并且每次我运行 cap script it fail 都是因为上面解释的相同的原因和使用上面提到的命令的ssh-add的 succeed only when I add the 私钥
有问题的Mac OS是
Note: Mac-OS X 10.9.2
1 回答
您需要将密码存储在钥匙串中 .
尝试:
希望这可以帮助 .