-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Is git fetch support 'ssh' protocol? #231
Comments
Not at the moment, no.
The SSH protocol will never work in the browser, unless the browser gets an API for creating raw TCP connections on port 22, so I won't be including SSH support in the |
My bad, I was saying about Node only. thanks |
For the browsers, maybe in a few years' time :-) |
Has there been any progress in bringing ssh to this project with the remoteHelper plugin? |
Shouldn't this be kept open? Isomorphic-git is a great library on node because of its lack of native dependencies (either git CLI or libgit2). But when automating tasks on a server, it's common to use SSH keys instead of credentials. Lack of SSH support is sadly a deal breaker for several of my tasks. As SSH isn't gonna be isomorphic soon, I would be perfectly fine with a remoteHelper plugin that works only in Node. |
Any progress or updates on the support for SSH? It is the only thing keeping me from moving my projects to isomorphic-git. |
^ Same |
^ same here! |
^ Same |
This feature would be ideal for node projects, not sure how to proceed with this library if I can't use ssh based git connections. |
@bombillazo do you want to contribute with support for this feature? I'm afraid that no one will do this work for you if you need this. This project doesn't have main author that would wrote the code. He left the project. I'm maintainer but I don't write code myself. Last time I did a bit of work on lightningFS. |
fine, i'll bite. where's the relevant code? |
But note that it may be difficult to support ssh protocol for the browser, you will need to write special kind of HTTP to SSH proxy. |
You will need to read the code and find it for yourself. Sorry I don't have time to read the code for you. |
My $0.02. I think it would be best to focus on how to do it (as a plugin) without worrying about the browser at first just to understand the mechanics. Once that's working, then we could start to worry about what's possible in the browser. |
Sure but I would not merge if it works only on NodeJS. We can have some work branch where we will merge the PR. |
What’s the update on this? I would and could happily contribute code. |
@evictor This will need to be implemented outside of the isomorphic-git library because SSH will not work in the browser. But if you want to play with the code go ahead. It may help others. But note that it needs to be something that will be pluggable into the library. And plugins from version 0.x were removed in version 1.0. |
Question, would supporting ssh over websockets be a viable option? I've implemented this for another project and the gateway was easy to implement, it would require the server or a custom server to be a gateway though. |
Didn't know something like this was possible. Does it require a proxy on the server or is it a Browser code that talks directly with SSH? |
this might be helpful — https://github.com/agladshteyn/BrowserSocket only caveat is that it requires a node "relay" server to already be running somewhere else. do you think it'd still be worth trying though, despite that? |
You can try it as your own project, having a proxy server to allow SSH is out of scope for this project. You can't normally use SSH in the browser. |
Hi,
As I'm using 'git fetch', it fail to go with 'ssh' protocol?
Is 'ssh protocol' supported by isomorphic-git?
If it's not, will it be in the future?
thank you,
Howard
The text was updated successfully, but these errors were encountered: