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

后端 未结 7 1347
遥遥无期
遥遥无期 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:38

    Simple two string solution from this answer:

    # ~/.profile
    if ! pgrep -q -U `whoami` -x 'ssh-agent'; then ssh-agent -s > ~/.ssh-agent.sh; fi
    . ~/.ssh-agent.sh
    
    0 讨论(0)
提交回复
热议问题