LibSSH-ESP32 icon indicating copy to clipboard operation
LibSSH-ESP32 copied to clipboard

SSH tunnel

Open djamps opened this issue 4 years ago • 1 comments

I browsed the code and I'm thinking this is a long shot, but I had to ask anyways. Is it possible for the SSH client to establish a tunnel such as the following command on *nix:

ssh -L 8000:1.2.3.4:8000 [email protected]

Basically I'm trying to port forward to a public SSH server and avoid using 3rd party services like ngrok that require a 2nd local device.

djamps avatar Aug 27 '21 23:08 djamps

Does ssh_channel_open_forward() do what you need? Could you try it? Upstream documentation is here: https://api.libssh.org/stable/group__libssh__channel.html#gae86b0704a1f2bdebb268b55567f7f47b

ewpa avatar Aug 28 '21 07:08 ewpa