参考文章:Windows下Git多账号配置,同一电脑多个ssh-key的管理
按流程执行后,碰到的问题
Permission denied, please try again.
需要执行ssh-add ,执行后出现如下问题:
Could not open a connection to your authentication agent.
排查后,先执行ssh-agent bash,再执行ssh-add
[root@localhost wakavS]# ssh-add ~/.ssh/id_rsa_Leen
Could not open a connection to your authentication agent.
[root@localhost wakavS]# ssh-agent bash
[root@localhost wakavS]# ssh-add ~/.ssh/id_rsa_Leen
Enter passphrase for /root/.ssh/id_rsa_Leen:
Identity added: /root/.ssh/id_rsa_lidong (/root/.ssh/id_rsa_Leen)
操作成功。
原文链接:https://blog.csdn.net/leedaning/java/article/details/49888335
网友评论