The Heroku dynos have ssh on them so this might be possible. You could put a bash script in your repo that would setup the ssh tunnel and then start the web process. Then just point your Procfile to that bash script.

BTW: git push to Heroku uses ssh.

Hope that helps.

-James


On 12/16/2011 11:06 AM, lazyant wrote:
Hello,

I'm evaluating Heroku and I can't find an answer of weather I can
create an SSH tunnel in an Heroku instance.

The problem I'm trying to solve is to communicate with an external
database server (mysql, mongodb, whatever) or another service securely
since database connection is in cleartext.

I'm aware Heroku offers its own database services (not for mongo) or I
can set up EC2 instances with the dbs and that's safer because data
moves in the same data center in principle.

Basically I'd need to run an ssh client (ssh -L) on Heroku to ssh out.
I know I cannot ssh in but documentation is so sparse, I can't even
find if git pushes over ssh or not.

Or I'd be interested to know of another solution on how to connect
securely (encrypted, not plain-text) to a database in an external, non-
AWS server.

Thanks!


--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to