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

Windows 10 OpenSSH integration #1

Closed
eugenov opened this issue Nov 18, 2020 · 15 comments
Closed

Windows 10 OpenSSH integration #1

eugenov opened this issue Nov 18, 2020 · 15 comments

Comments

@eugenov
Copy link

eugenov commented Nov 18, 2020

Hello!
Is there any way to integrate mc with windows 10 built-in Openssh? SFTP feature is not so usable at moment, but with ~/.ssh/config reading will open all the doors: public key auth, jumphosts, etc.

@adamyg
Copy link
Owner

adamyg commented Dec 10, 2020

mc is based on libssh2, whereas the window implementation is PowerShell/openssh-portable, direct integration is not feasible.
Use of the OpenSSH ssh-agent may be a possible solution, which from initial research shall utilize the local certstore.

@adamyg
Copy link
Owner

adamyg commented Dec 12, 2020

On further investigation to my surprise Win-OpenSSH seems to use local registry entries.
I can not find any CertStore interaction within either the client nor the agent.
Regardless the Win-OpenSSH agent uses a named pipe for ipc, libssh2 would need enhancing to support (libssh2/src/agent.c)

PuTTY's Pageantis is already supported by libssh2, suggest this the most suitable solution at this time.

@adamyg
Copy link
Owner

adamyg commented Dec 13, 2020

libssh2 OpenSSH support is in the pipeline, libssh2/libssh2#517

@eugenov
Copy link
Author

eugenov commented Dec 21, 2020

Since libssh2 will grab ~.ssh\config, for user it will be no difference: openssh or libssh2 somewhere inside, imao

@eugenov
Copy link
Author

eugenov commented May 27, 2021

Hello! Do you have any roadmap? TY!

@adamyg
Copy link
Owner

adamyg commented May 28, 2021

Waiting on the next libssh2 release.

@eugenov
Copy link
Author

eugenov commented Oct 25, 2021

[libssh2] Update to 1.10.0 microsoft/vcpkg#20364

@adamyg
Copy link
Owner

adamyg commented Nov 8, 2021

libssh2-1.10, target build-221

@adamyg adamyg closed this as completed Nov 8, 2021
@eugenov
Copy link
Author

eugenov commented Nov 9, 2021

Is there any plans to migrate to libssh? It offers more openssh compatibility, and maintained by RedHat, as far as i know. In fact, now everithing works pretty well, just curious

@Neustradamus
Copy link

@eugenov: @adamyg has done a new version, can you look?

@eugenov
Copy link
Author

eugenov commented Sep 11, 2023

@Neustradamus Just checked - mc respects ~.ssh\config file. It also works with Openssh agent. Perfect

@eugenov
Copy link
Author

eugenov commented Sep 11, 2023

But only for FISH, SFTP not supported
image

@adamyg
Copy link
Owner

adamyg commented Sep 11, 2023

SFTP utilizes libssh2.

@eugenov
Copy link
Author

eugenov commented Sep 11, 2023

@adamyg and FISH - Openssh? Didn't get it. libssh2 bundled with mc, right? Openssh does not. Why FISH works but SFTP does not?

@adamyg
Copy link
Owner

adamyg commented Sep 12, 2023

vfs/sftp connections are via libssh2, whereas Files transferred over Shell protocol (FISH) over SSH, an ssh client is required, you can either install Win32-OpenSSH or WinXSH. For legacy RSH based connections WinXSH is needed.

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

No branches or pull requests

3 participants