TortoiseGit with openssh key not authenticating using ssh-agent

前端 未结 8 1048
暗喜
暗喜 2020-11-30 01:03

I\'m setting up a git environment on Windows XP (msysGit 1.7.11, TortoiseGit 1.7.14) and trying to achieve following points :

  • ssh connection on a port differ
8条回答
  •  我在风中等你
    2020-11-30 01:43

    None of the above answers worked for me.

    I created this batch file to solve the problem.

    CALL "C:\Program Files\Git\cmd\start-ssh-agent.cmd"
    SETX SSH_AUTH_SOCK "%SSH_AUTH_SOCK%"
    SETX SSH_AGENT_PID "%SSH_AGENT_PID%"
    

    Run this once, and enter your passphrase.

    Then you can use tortoisegit with openssh without having to enter your passphrase for every operation.

提交回复
热议问题