Heroku Exec (SSH Tunneling) | Heroku Dev Center
Heroku Exec is a feature for creating secure TCP and SSH tunnels into a dyno. It supports SSH sessions, port forwarding, remote debugging, and inspection with popular Java diagnostic tools.
devcenter.heroku.com