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

Add support for cloning git repositories using SSH #151

Open
Angelmmiguel opened this issue Jun 2, 2023 · 2 comments
Open

Add support for cloning git repositories using SSH #151

Angelmmiguel opened this issue Jun 2, 2023 · 2 comments
Labels
🚀 enhancement New feature or request

Comments

@Angelmmiguel
Copy link
Contributor

Is your feature request related to a problem? Please describe.

After closing #147, you can use a remote git repository as a valid location. However, it only clone repos over HTTP/S. The following command doesn't work:

wws [email protected]:vmware-labs/wasm-workers-server.git

Describe the solution you'd like

I want to clone git repositories using the SSH protocol too. It will require to detect these kind of URIs, load the SSH key and try to pull it. For the SSH key, I need to evaluate the different options. From the git2-rs library, you can load it from a file, the memory or a ssh-agent.

You may need to add more git options to the CLI so you can get SSH keys location, agent usernames, etc.

Describe alternatives you've considered

No response

Additional context

No response

@gedw99
Copy link

gedw99 commented Aug 31, 2023

This ssh protocol would be nice addition.

madding the ability to flag the auth provider too would be a nice to have. For example ssh keys.

Then git config —local xxxx to tell it the path to your ssh key.

@Angelmmiguel
Copy link
Contributor Author

Yes! That's the main reason why we created a separate task for this. We would need to add more configuration options for managing auth methods. I will try to complete the implementation details on the issue to discuss about them 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants