Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client remote port forwarding? #73

Closed
jurex opened this issue Feb 18, 2021 · 2 comments
Closed

Client remote port forwarding? #73

jurex opened this issue Feb 18, 2021 · 2 comments

Comments

@jurex
Copy link

jurex commented Feb 18, 2021

Hey guys, is it possible to implement remote/reverse port forwarding from the client side? Something similar as -R switch used in the ssh command: ssh -R 9090:localhost:8080 some.remoteserver.com

I'm currently using swift-nio to run a local web server + websocket in the iOS application, and I would like to expose it using the remote ssh server without any additional port forwarding configured on the router. Is it something like this even possible using swift-nio? Thanks!

@Lukasa
Copy link
Collaborator

Lukasa commented Feb 18, 2021

Yes, this supports reverse port forwarding using the forwardedTCPIP channel type and the TCPForwardingRequest global request.

There is currently no demo for this, so putting it together will require some fairly deep understanding of how SSH implements this functionality.

@jurex
Copy link
Author

jurex commented Feb 18, 2021

Awesome, thanks for quick reply! At least I know it's possible now, so I can start with basic experiments.

@jurex jurex closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants