adamyg / mcwin32

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

proxyjump in Shell-link won't work #54

Closed Kyogre closed 1 year ago

Kyogre commented 1 year ago

I made aliases config in C:\Users\%USERNAME%\.ssh\config and have written aliases with proxyjumps there. If I try to connect via cmd using ssh <alias> command, it asks passwords and connects successfully.

If I connect using alias via Shell-link feature in mc on my linux OS on the same PC, it connects without a problems too.

But if I try to connect on Windows using alias via Shell-link feature in mcwin32 (v4.8.29), I get error Cannot chdir to "/sh://<alias>"

adamyg commented 1 year ago

unsure if a libssh2 supported future

sloth5649 commented 1 year ago

A possible workaround is to use the ProxyCommand directive in the config file. Mine looks like this:

Host ProxyJump_server
  HostName ProxyJump_server ip address
  User ....
  IdentityFile ....

Host server
  HostName server ip address
  User ....
  IdentityFile ....
  ProxyCommand ssh -q -W %h:%p ProxyJump_server
Kyogre commented 1 year ago

Yeah, your workaround works great for me too. Thanks

Kyogre commented 7 months ago

Working fine now on mcwin32 4.8.31