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

后端 未结 3 1259
無奈伤痛
無奈伤痛 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:49

    Instead of creating your private key with PuttyGen (ppk keys), Use PuttyGen to load said ppk file, and save it as OpenSSH file (id_rsa, id_rsa.pub)

    Or, as I described here, use Git for Windows PATH to access ssh-keygen, and create one directly with the right format:

    ssh-keygen -t rsa -C "key for my Git repo server" -q -P ""
    

提交回复
热议问题