问题: ssh-add ~/.ssh/id_rsa Could not open a connection to your authentication agent. 解决: 执行: eval `ssh-agent -s` 然后再次执行 ssh-add ~/.ssh/id_rsa 就可以顺利执行了