执行 ssh-add 时出现 Could not open a connection to your authentication agent
执行命令 ssh-add .ssh/id_rsa
时出现报错:
root@devops:~# ssh-add .ssh/id_rsa
Could not open a connection to your authentication agent.
解决方案:
- 第一种解决方案:
ssh-agent bash
- 第二种解决方案:
eval `ssh-agent`