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

Is git fetch support 'ssh' protocol? #231

Closed
Tracked by #22
howardgod opened this issue May 25, 2018 · 22 comments
Closed
Tracked by #22

Is git fetch support 'ssh' protocol? #231

howardgod opened this issue May 25, 2018 · 22 comments

Comments

@howardgod
Copy link
Contributor

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

@billiegoose
Copy link
Member

Is 'ssh protocol' supported by isomorphic-git?

Not at the moment, no.

If it's not, will it be in the future?

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 isomorphic-git core. But creating raw TCP connections is possible in Node and Electron, and it will be easy (I think) to implement the git+ssh protocol as a remoteHelper plugin once I finish the plugin API.

@howardgod
Copy link
Contributor Author

My bad,

I was saying about Node only.

thanks

@TomasHubelbauer
Copy link
Member

TomasHubelbauer commented May 27, 2018

For the browsers, maybe in a few years' time :-)

@keithslater
Copy link

Has there been any progress in bringing ssh to this project with the remoteHelper plugin?

@jods4
Copy link

jods4 commented Sep 9, 2020

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.
It looks like the removeHelper plugin model hasn't been finalized since this issue was opened.

@kwenyao
Copy link

kwenyao commented Oct 9, 2020

Any progress or updates on the support for SSH? It is the only thing keeping me from moving my projects to isomorphic-git.

@Awpatterson217
Copy link

^ Same

@joaofrcab
Copy link

^ same here!

@michael-kry
Copy link

^ Same

@bombillazo
Copy link

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.

@jcubic
Copy link
Contributor

jcubic commented Jun 6, 2022

@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.

@GamerGirlandCo
Copy link

@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?

@jcubic
Copy link
Contributor

jcubic commented Sep 18, 2022

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.

@jcubic
Copy link
Contributor

jcubic commented Sep 18, 2022

fine, i'll bite. where's the relevant code?

You will need to read the code and find it for yourself. Sorry I don't have time to read the code for you.

@mojavelinux
Copy link
Contributor

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.

@jcubic
Copy link
Contributor

jcubic commented Sep 19, 2022

Sure but I would not merge if it works only on NodeJS. We can have some work branch where we will merge the PR.

@evictor
Copy link

evictor commented Sep 26, 2023

What’s the update on this? I would and could happily contribute code.

@jcubic
Copy link
Contributor

jcubic commented Sep 26, 2023

@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.

@jmgurney
Copy link

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.

https://www.funkthat.com/gitea/jmg/wsfwd

@jcubic
Copy link
Contributor

jcubic commented Dec 26, 2023

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?

@GamerGirlandCo
Copy link

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?

@jcubic
Copy link
Contributor

jcubic commented Dec 30, 2023

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.

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

No branches or pull requests