首先我启动 ssh-agent
eval `ssh-agent -s`
我确认这SSH_AUTH_SOCK是通过运行设置的echo $SSH_AUTH_SOCK,它令人鼓舞地返回/tmp/ssh-oCsFfHvR3345/agent.3345。
然而,当我跑步时sudo ssh-add ~/.ssh/id_rsa,我得到
Could not open a connection to your authentication agent.
此外,ssd-add -l回报The agent has no identities.