windows配置多git账号

参考文章: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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容