While you cannot ssh directly, you can get a bash shell on a heroku dyno quite easily by running:
heroku run bash
This can be very handy for debugging.
That said, heroku will spin up a new dyno instance to run the bash shell. You cannot (as far as I know) get a shell on a specific dyno of your choice.