0

How do I create an SSH tunnel to a Heroku dyno?

yacc
  • 2,915
  • 4
  • 19
  • 33
Walrus the Cat
  • 2,314
  • 5
  • 35
  • 64
  • 1
    Can you add some more details as to what you have tried? A quick Google search revealed: https://devcenter.heroku.com/articles/exec – Sid Nov 19 '17 at 16:01

1 Answers1

1

Assuming you want to create an SSH tunnel in order to proxy, you can create a SOCKS proxy as follows. Assuming you have a local Heroku project, in that directory:

heroku ps:socks will create a SOCKS proxy on a localhost port. You can then proxy through your dyno by e.g. socks5://localhost:1080.

Hope that helps!

Walrus the Cat
  • 2,314
  • 5
  • 35
  • 64