TortoiseGit with openssh key not authenticating using ssh-agent

前端 未结 8 1031
暗喜
暗喜 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:46

    If you use RSA keys in repositories, add at the end of the script as described above^

    CALL "C:\Program Files\Git\cmd\start-ssh-agent.cmd"
    ...
    "C:\Program Files\Git\usr\bin\ssh-add"  ~/.ssh/myid.rsa
    

    Works with Git 2.24.0, TortoiseGit 2.9.0, Windows 10 and no any Putty using.

    0 讨论(0)
  • 2020-11-30 01:47

    There seems to be a whole variety of options to solve this. As none of the above have worked for me, I tought I'd share what helped for me.

    Screenshot: Network settings / Git SSH Client

    In Settings... -> Network -> SSH -> SSH client, set the client to C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe. Using Pageant, you're then automatically authenticated as expected, otherwise you are prompted for your private key passphrase. Make sure the "Autoload Putty Key" option is checked in the push dialog.

    0 讨论(0)
提交回复
热议问题