SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

Allow ssh-agent for authentication (Win32-OpenSSH) #317

Closed DennisGaida closed 2 years ago

DennisGaida commented 2 years ago

Windows ships in newer versions with OpenSSH OOTB including ssh-agent to manage private keys to replace PuTTy pageant.

In the settings I can only configure pageant or a unix socket, which the ssh-agent implementation does not have: https://github.com/PowerShell/Win32-OpenSSH/issues/1761.

Could we get support for the Windows version of ssh-agent nonetheless?

SchoofsKelvin commented 2 years ago

Duplicate of #83 and #97

OpenSSH port should still expose a "unix socket" (as a named pipe on Windows) which you can make use of, and the Settings UI actually suggests it too: Screenshot of Agent field While I don't remember the exact source where I got that suggestion from, it is mentioned in PowerShell/Win32-OpenSSH#1586. I just did a quick test and using that value does make the extension make use of the OpenSSH agent running in Windows.

DennisGaida commented 2 years ago

Sorry for the duplicate! I totally didn’t see the drop down in the extension and just read the explainer text above as well as the readme/wiki here. Should have searched the issues I guess.