clue / reactphp-ssh-proxy

Async SSH proxy connector and forwarder, tunnel any TCP/IP-based protocol through an SSH server, built on top of ReactPHP.
https://clue.engineering/2018/introducing-reactphp-ssh-proxy
MIT License
21 stars 7 forks source link

Support accepting remote connections through SSH tunnel #6

Open clue opened 5 years ago

clue commented 5 years ago

Currently, this project has a focus on creating outgoing connection which can be used by higher-level protocol implementations.

In the future, we should also support accepting incoming connections through an SSH tunnel. This can be implemented by starting a local socket server and using ssh -R 0.0.0.0:8080:localhost:1234 user@example.com and possibly by parsing its debugging output to get access to actual remote client IPs. I've started looking into this and will keep this ticket updated as I make progress.