-
Notifications
You must be signed in to change notification settings - Fork 177
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
Add support for SSH remote port forwarding #120
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't understand the use cases very well.
We have bastion functionality for accessing SSH servers via a middle-man SSH server.
Is this solving any other use case?
Yes, bastion hosts allow to access ssh hosts which are not accessible via a direct network connection. In OpenSSH config:
Whereas remote port tunneling/forwarding allows access to tcp-services on the ssh-client side by listening on a tcp port on the remote side . In OpenSSH config:
You can then use this environment variable on the remote site to access the local proxy:
In your Supfile you get the same feature with this pull request:
|
@juergenhoetzel I see, thanks. I'm still missing the point, though.
|
This would be the case if you do local Port forwarding (I didn't find a use-case for this). |
Use cases:
Still the error reporting (related to tunnel setup: bind error, connection-refused, ...) is not satisfactory. I would prefer to mix it with
remotes stderr but I don't see how this can be done.