Which format should be SSH private key for LibGit2 LibGit2Sharp (+SSH)

后端 未结 3 1288
無奈伤痛
無奈伤痛 2021-01-13 11:55

I´m kind of stuck with an SSH private key issue and LibGit2Sharp-Ssh.

I have a .Net/C# application that uses LibGit2Sharp-Ssh to clone a Git repository.

I ne

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 12:32

    privateKey point to a private key file in "OpenSSH" format.

    privateKey needs to point to a key, not a path to a key. You need to read the key file and place the contents into a string that you can pass to privateKey.

提交回复
热议问题