ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
126 stars 21 forks source link

SSH doesn't work with ProxyJump on Windows #69

Closed Sirse closed 3 weeks ago

Sirse commented 3 weeks ago

OpenSSH client (native) works like a charm, but R doesn't connects to server with two jumps. Seems like current libssh version doesn't support ProxyJump directive. According to changelog should work with libssh 0.11.

jeroen commented 3 weeks ago

Can you please try to install the new version from https://ropensci.r-universe.dev/ssh ?

Sirse commented 3 weeks ago

Still don't work. Timeout with ProxyJump directive (trying to connect internal IP 172...* without hops?), and error with ProxyCommand directive: libssh failure at 'connect': The libssh is built without support for proxy commands.

Probably win dll libssh should be compiled with flag?

jeroen commented 3 weeks ago

Looks like this is not supported in libssh as WITH_EXEC is explicitly disabled on Windows: https://gitlab.com/libssh/libssh-mirror/blob/master/DefineOptions.cmake#L66-68

The reason is that libssh uses fork() on the server to support executing server commands, which is not supported on Windows.

@cryptomilk is there a way to enable WITH_EXEC on the client only such that we can send ProxyJump on Windows clients?