Fork of libgit2sharp with SSH support
Questions tagged [libgit2sharp-ssh]
10 questions
7
votes
1 answer
Trouble authenticating with SshUserKeyCredentials in libgit2sharp-SSH
Having some trouble authenticating with SshUserKeyCredentials using libgit2sharp-SSH:
var co = new CloneOptions();
co.CredentialsProvider = (_url, _user, _cred) => new SshUserKeyCredentials { PrivateKey="C:\\path\\to\\private_key"…

Kim Lindqvist
- 363
- 4
- 15
5
votes
3 answers
Which format should be SSH private key for LibGit2 LibGit2Sharp (+SSH)
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…

emvoll
- 99
- 7
4
votes
0 answers
LibGit2Sharp-SSH "Failed to start SSH session: Unable to exchange encryption keys"
I'm using the current version of LibGit2Sharp-SSH from https://github.com/leobuskin/libgit2sharp-ssh
I generated a SSH private and public key using OpenSSH.
I set up an OpenSSH Server, and am able to use Git Bash to Clone/Push etc. using SSH.
I'm…

Garrick
- 71
- 2
4
votes
0 answers
Trouble Authenticating/Communicating using SSH with libgit2sharp
Having some trouble using libgit2sharp to pull/push changes to a remote repository using SSH authentication. This remote repository is hosted in GitLab.
Here is the code that I'm using:
using (var repo = new Repository(repoDirectory))
{
var…

Fidel Abella
- 41
- 3
4
votes
0 answers
LibGit2Sharp SshUserKeyCredentials Failed to authenticate SSH session. Callback returned error when git has passphrase
I am using LibGit2Sharp-ssh (LibGit2Sharp-SSH.1.0.22) nuget package in my C# application to clone some of the git repos. My git private key has the passPharse and when I use SshUserKeyCredentials api with proper…

sreelatha
- 41
- 2
4
votes
1 answer
Access remote git repo via ssh, using libgit2sharp
I'm trying to get a simple working example for cloning or accessing a remote git repository via ssh.
After adding nuget package LibGit2Sharp-SSH v1.0.22, got a .Net Framework v4.6.1 console application like this:
using LibGit2Sharp;
using…

SamuGG
- 479
- 2
- 8
- 20
2
votes
0 answers
LibGit2Sharp SSH, Unable to exchange encryption keys
Trying to put together a sample project cloning a repository (hosted in GOGS) using SSH and am getting the following error:
Failed to start SSH session: Unable to exchange encryption keys
I'm on windows, the keys are generated using ssh-keygen,…

matt.rothmeyer
- 174
- 14
1
vote
0 answers
How to clone public git repository with LibGit2 in Swift?
I am using libgit2 library to clone repository in iOS with swift language. I am able to clone repository by passing username and password
internal func credentialsCallback(
cred: UnsafeMutablePointer?>?,
url:…

PJR
- 13,052
- 13
- 64
- 104
1
vote
0 answers
libgit2sharp-ssh working with proxy?
I use the libgit2sharp-ssh and i implement the ssh connection successfully but now the https/http connection is not working under proxy ?
i look at the implementation of the methods clone and Push in libgit2sharp-ssh lib and both of them the value…

rotem_wolfovich
- 11
- 1
0
votes
0 answers
Is it possible to set cookie as custom header while using Push option in libgit2sharp?
In my project I have a requirement where I need to set cookie in the http header before calling Push command.I saw an option present to add custom header in FetchOptions class, but could not see in PushOption.Please confirm if adding cookie in…

Farhana
- 11
- 1