执行
ssh-add ~/.ssh/id_rsa_gitee
然后出现如下错误
Could not open a connection to your authentication agent.
解决方法:
ssh-agent bash
之后再执行
ssh-add ~/.ssh/id_rsa_gitee
如果出现如:
Identity added: /c/Users/Administrator/.ssh/id_rsa_gitee (/c/Users/Administrator/.ssh/id_rsa_gitee)
则表明已经成功把私钥添加到ssh客户端
注: 1.以上命令在Git Bash 下执行 2.仅在当前命令行会话生效,若关闭命令行窗口,连接失效。