Getting ssh-agent to work with git run from windows command shell

后端 未结 7 1378
遥遥无期
遥遥无期 2020-12-04 07:09

I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already

7条回答
  •  执念已碎
    2020-12-04 07:15

    I had the same problem as you, then I tried adding this code

    #! /bin/bash 
    eval `ssh-agent -s` 
    ssh-add ~/.ssh/*_rsa
    

    into file .bashrc in my home directory. And it works!

提交回复
热议问题