Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using SSH instead of username\password #1881

Open
shersh opened this issue Apr 23, 2021 · 8 comments
Open

using SSH instead of username\password #1881

shersh opened this issue Apr 23, 2021 · 8 comments

Comments

@shersh
Copy link

shersh commented Apr 23, 2021

Because of username and password deprication
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/

We should use SSH keys for auth.
How I can to do it with lib?

@aloisdg
Copy link

aloisdg commented Jul 7, 2021

You may find the link interesting: clone a git repository with SSH and libgit2sharp

and this thread #1422

@shersh
Copy link
Author

shersh commented Jul 7, 2021

@aloisdg Thx, but it 5 years old and no commit this time, so it is not working solution

@aloisdg
Copy link

aloisdg commented Jul 7, 2021

@shersh I plan to do it quite barebone with a powershell call to git

@digao-dalpiaz
Copy link

digao-dalpiaz commented Feb 23, 2022

Hello, I trying to use LibGit2Sharp with SSL.

I merged libgit2sharp master branch with SSL branch. Thats ok!

But, how to get git2 dll and libssh/zlib updated DLLs for Windows ?
I'm trying to build libgit2 but it seems to be a quite complex...

@naushadckk
Copy link

@digao-dalpiaz digao-dalpiaz

You can build git2.dll. Just go thru the "Quick Start" section. You need VS and python(if you require tests) installed.
After that install cmake.

  1. clone the repo
  2. go to the cloned folder(cd )
  3. mkdir build
  4. cd build
  5. cmake ..

Build

The above will create the necessary things under the build folder.
You can open the .sln file using VS. And build in VS.

OR

cmake --build .

The above step will create the .dll file under the bin folder.

@hbertsch
Copy link

hbertsch commented Jul 27, 2023

Hello, is there still no ssh support in libgit2sharp? I found a repo with an ssh extension to libgit2sharp but the last commit is from 2016... so we won't be using this I guess.

ssh would be a great addition to this tool

@adwitkow
Copy link

adwitkow commented Feb 4, 2024

This is such a bummer. I was really excited about this library before I found out about this lack of SSH support. I understand the explanation provided in #1422 but I don't get why it can't be a use-at-your-own-risk kind of option.

@mwittmann
Copy link

The v0.31.0 release notes (Dec. 3, 2024) indicate that SSH authentication is now supported through LibGit2's OpenSSH support. But I cannot find any explanation or example of how to use SSH with the latest LibGit2Sharp. Anyone have any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants