LibSSH-ESP32
LibSSH-ESP32 copied to clipboard
SSH tunnel
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.
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