libgit2sharp-ssh

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

早过忘川 提交于 2019-12-19 07:58:41
问题 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 need to use SSH (https with user/password is not an option) and I also have a valid key, which is already working e.g. with Teamcity. My code looks like this: CloneOptions options = new CloneOptions { Checkout = false, CredentialsProvider = (url, user, cred) => new SshUserKeyCredentials() { PrivateKey = privateKey, Passphrase = passphrase,

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

做~自己de王妃 提交于 2019-12-01 06:19:27
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 need to use SSH (https with user/password is not an option) and I also have a valid key, which is already working e.g. with Teamcity. My code looks like this: CloneOptions options = new CloneOptions { Checkout = false, CredentialsProvider = (url, user, cred) => new SshUserKeyCredentials() { PrivateKey = privateKey, Passphrase = passphrase, PublicKey = publicKey, Username = "git" } }; var clone = LibGit2Sharp.Repository.Clone(remoteUrl,