Created
December 13, 2017 17:48
-
-
Save scwood/5a6e8922166202fb3f3d070478b9355b to your computer and use it in GitHub Desktop.
SSH proxy and access from inside Docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # On local machine | |
| ssh -NL 9000:some-restricted-site.com:80 myCoolServer | |
| # 9000 being the local port, some-restricted-site.com being the site you want to proxy too, | |
| # and myCoolServer being the server that allows connections to some-restricted-site.com | |
| # At this point http://localhost:9000 should resolve to some-restricted-site.com | |
| # To access these from inside docker container: http://docker.for.mac.localhost:9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment