winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.1k stars 257 forks source link

[Request] At least partial support of native windows openssh #323

Open eugenov opened 2 years ago

eugenov commented 2 years ago

Hello! What do you think about implementation of openssh support, such as:

For seamless ssh-ing it would be enough. Main goal is creating environment, close to linux file managers (ssh bookmarks, shortcuts, terminal ssh-ing, etc. with same keys, certs, configs), but on Win. Thank you! P.S.: not quite https://github.com/billziss-gh/sshfs-win/issues/320, but almost

bbutler-tssg commented 2 years ago

I agree that supporting ssh config files would improve greatly usability. Indeed, potentially the same ssh config file could be used across Windows, linux and macos clients, because the ssh config format is well able to express the details of the ssh connection with the server.

I also get the impression that sshfs-win is limited to id_rsa keys - it would be great to support id_ed25519 keys as well. At least I get an ssh "connection reset by peer" when I try to use such keys.

Lastly, it is considered good practice to add password checking to the private key, and on unix boxes to use ssh-agent to store the password for each password-protected private key. ssh-agent can be found in both Git for Windows and WSL (e.g., for logging in to git repos), but sshfs-win does not seem to use it.

billziss-gh commented 2 years ago

A few years ago I looked into supporting OpenSSH.

While I do not remember all the details I had determined that it was not easy to support. If I recall correctly the issue was that SSHFS communicates with SSH using the Cygwin implementation of UNIX sockets, which was incompatible with anything that OpenSSH provided.

I understand that this issue is asking for partial integration with OpenSSH (via configuration sharing). Unfortunately I do not have the time to work on anything like this myself, but if someone wants to take it on I am happy to provide support.

bbutler-tssg commented 2 years ago

Thanks @billziss-gh - you are right, my request mostly related to shared configuration, but also to greater support for OpenSSH features, which might be a step too far at this time, especially if sockets are handled differently.