TortoiseGit using incorrect SSH key

前端 未结 4 2036
时光取名叫无心
时光取名叫无心 2021-02-01 05:51

I have a strange problem with tortoise git at the moment, which I can\'t figure out. When trying to commit to my repository on github I get the error

ERRO

4条回答
  •  滥情空心
    2021-02-01 06:19

    There are different private key formats. My keypair was generated with puttygen, but my Tortoise was configured to use ssh.exe (form msysgit) as ssh-client. So i changed it to plink (from Tortoise) and it worked.

    • ssh-key.exe => ssh.exe (C:\msysgit\msysgit\bin)
    • puttygen.exe => TortoisePlink.exe (C:\Program Files\TortoiseGit\bin)

    Additional note: Use the correct URL! Github offers you three URL https, git and ssh.


    Edit:

    I adapted the settings here:

    Settings - TortoiseGit >> Network >> SSH-Client
    C:\Program Files\TortoiseGit\bin\TortoisePLink.exe
    

    I have generated the key-pair with:

     C:\Program Files\TortoiseGit\bin\puttygen.exe
    

提交回复
热议问题