adamyg / mcwin32

Midnight Commander for Windows
https://sourceforge.net/projects/mcwin32/
204 stars 13 forks source link

sftp does not use ssh key #86

Closed fekir closed 4 months ago

fekir commented 4 months ago

Hello, it seems that mc does not use my ssh key located at ~/.ssh

I've an entry in ~/.ssh/config with HostName, User and IdentityFile, and I can use ssh for logging in successfully to the remote.

According to https://github.com/adamyg/mcwin32/issues/1, ssh keys should be supported.

Are there known limitations? Is there something I can do (logging?) for debugging this issue?

adamyg commented 4 months ago

implementation leverages libssh2, not OpenSSH directly; currently only ~/.ssh/known_hosts is utilized. libssh2 does support using OpenSSH as an agent.

One should use Shell link... submenu instead of SFTP link... Type something like this in the address field: sh://myhostalias/~.

adamyg commented 4 months ago

MC: https://midnight-commander.org/ticket/3039. https://midnight-commander.org/ticket/4506 long pending issue.

fekir commented 4 months ago

I'm not sure about the status of https://midnight-commander.org/ticket/3039 and https://midnight-commander.org/ticket/4506, but I use use daily mc (version 4.8.31) with sftp + ssh keys + aliases in ~/.ssh/config, both on linux and windows (with cygwin)

adamyg commented 4 months ago

Try running the OpenSSH agent