Code Monkey home page Code Monkey logo

Comments (12)

lancetekk avatar lancetekk commented on July 17, 2024 1

i recently started to look into it, no promises though - i also do not want to interfere with any plans that @evsar3 might have

from sshfs-win-manager.

rmunn avatar rmunn commented on July 17, 2024 1

Built-in Windows 10 SSH Agent uses a named pipe for communication instead of a socket as seen in Unix. I wasn't able to find any node package that implementa such communication method.

https://stackoverflow.com/a/32172145 shows an example of using Windows named pipes: basically, you would use net.connect("\\\\.\\pipe\\INSERT_PIPE_NAME_HERE") if that example is correct. (The pipe is \\.\pipe\INSERT_PIPE_NAME_HERE but the backslashes have to be backslash-escaped, of course). I haven't tested this myself, but it looks like it's possible.

from sshfs-win-manager.

rmunn avatar rmunn commented on July 17, 2024

Worth noting that there's an OpenSSH Authentication Agent service included in Windows 10, though it is disabled by default. But it's simple to enable and start it in the Services app, and it's guaranteed to be there in every Win10 installation. So if you add code to integrate with a key agent, please make sure the built-in Win10 OpenSSH agent is one of the ones you integrate with.

from sshfs-win-manager.

evsar3 avatar evsar3 commented on July 17, 2024

Built-in Windows 10 SSH Agent uses a named pipe for communication instead of a socket as seen in Unix. I wasn't able to find any node package that implementa such communication method.
In order to make this work I guess I will have to write my own client, and this will be a hard work, since I need to study the protocol and implement in JavaScript.
I will also look up for other key management programs and see if they provide a better API.

from sshfs-win-manager.

Luckyvb avatar Luckyvb commented on July 17, 2024

What about Putty Agent?

from sshfs-win-manager.

lancetekk avatar lancetekk commented on July 17, 2024

I am very sorry. While i thought it would be possible, it turns out that i oversaw an issue and i cant solve this right now. I will keep looking for a solution though.

I hope i can find a solution while digging through https://github.com/ymnk/jsch-agent-proxy/blob/master/jsch-agent-proxy-pageant/src/main/java/com/jcraft/jsch/agentproxy/connector/PageantConnector.java . If anyone has a hint, i would be thankful for a little pointer in the right direction.

from sshfs-win-manager.

venatiodecorus avatar venatiodecorus commented on July 17, 2024

+1 for this

from sshfs-win-manager.

bviktor avatar bviktor commented on July 17, 2024

Oh yes, all my stuff uses my key loaded in Pageant. Windows Git client, WSL distros, PuTTY itself.... it'd be silly to save my passphrase in each and every SSH-related tool separately...

from sshfs-win-manager.

itsTyrion avatar itsTyrion commented on July 17, 2024

this would be a great feature, I could maybe use 1password's agent then

from sshfs-win-manager.

 avatar commented on July 17, 2024

Oh yes, all my stuff uses my key loaded in Pageant. Windows Git client, WSL distros, PuTTY itself.... it'd be silly to save my passphrase in each and every SSH-related tool separately...

SSHFS-WIN has no support for the MS port of OpenSSH server and client, its using cygwin ports. Same with putty, pageant. Thats why they can share that ssh-agent.exe.

Git, GNUPG and WSL2 (AF_UNIX proxy) has support for the MS port. Thats why they can share that other ssh-agent.exe.

Its not silly that you have to type your passhprase for each ssh-agent..?

SSHFS-WIN doesnt even support the MS port so its expected that the manager for SSHFS-WIN doesnt either. Just use the cygwin agent for it all as all those clients you mention support it ?

Edit: --

from sshfs-win-manager.

bviktor avatar bviktor commented on July 17, 2024

Yes, there’s no support atm, that’s precisely why this ticket exists. Thanks for your invaluable contribution to the topic.

from sshfs-win-manager.

 avatar commented on July 17, 2024

Yes, there’s no support atm, that’s precisely why this ticket exists. Thanks for your invaluable contribution to the topic

ansible/ansible#77277 (comment)

from sshfs-win-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.