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

ssh dynamic port forwarding #1693

Closed
steven-aerts opened this issue Feb 16, 2018 · 8 comments
Closed

ssh dynamic port forwarding #1693

steven-aerts opened this issue Feb 16, 2018 · 8 comments
Assignees
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements
Milestone

Comments

@steven-aerts
Copy link
Contributor

The -D flag of ssh can sometimes be very handy.
It allows you to dynamically setup network connections through the ssh tunnel.
For example to browse as if you are on the connected node, or tunnel jmx connections.

Hope you do not mind that I already have a patch ready for this.

@kontsevoy kontsevoy added the feature-request Used for new features in Teleport, improvements to current should be #enhancements label Feb 16, 2018
@kontsevoy kontsevoy added this to the 2.5.1 "Portland" milestone Feb 16, 2018
@kontsevoy
Copy link
Contributor

@steven-aerts if -D is fully compatible with OpenSSH, this is more than welcome addition! We'll review the PR shortly, thanks.

@steven-aerts
Copy link
Contributor Author

For a SOCKS5 proxy it should be fully compatible with the -D behaviour of ssh.
For a SOCKS4 proxy which is also supported by OpenSSH I print an error that it is not yet implemented. I doubt that a lot of people are still using a SOCKS4 proxy.

@klizhentas klizhentas modified the milestones: 2.5.1 "Portland", 2.6.0 "Austin" Mar 15, 2018
@kontsevoy kontsevoy removed this from the 2.6.0 "Austin" milestone Apr 24, 2018
@kontsevoy
Copy link
Contributor

@klizhentas move this out of 2.6?

@klizhentas
Copy link
Contributor

We promised Steven to get it going as a part of 2.6 release, I would try to push this, to avoid long waits if possible.

@RO-29
Copy link

RO-29 commented Sep 2, 2018

Is there any plan to support dynamic port forwarding,

I really use socks5 proxy a lot and my current company has enforced tsh so missing out a lot on not able to use -D flag with it.

Thanks

@steven-aerts
Copy link
Contributor Author

Hi Rohit,

I did not have time to apply the review comments of PR #1694
When you build a tsh with this PR, you should be able to use it against the servers of your client. As this patch only changes the tsh client and does not impact anything on the server side.

Good luck,

Steven

@klizhentas
Copy link
Contributor

@steven-aerts Given the age of this commit we will probably take over this PR and apply our code review comments if you don't mind.

@steven-aerts
Copy link
Contributor Author

@klizhentas I don't mind.
If you have any questions, let me know.

Also let me know if you do not have time to do it, in August I was offline, but in September I probably have some time.

Thanks,

Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements
Projects
None yet
Development

No branches or pull requests

6 participants