Skip to content

Instantly share code, notes, and snippets.

@scwood
Created December 13, 2017 17:48
Show Gist options
  • Select an option

  • Save scwood/5a6e8922166202fb3f3d070478b9355b to your computer and use it in GitHub Desktop.

Select an option

Save scwood/5a6e8922166202fb3f3d070478b9355b to your computer and use it in GitHub Desktop.
SSH proxy and access from inside Docker container
# 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