ssh tunnel Dreamhost

53 views
Skip to first unread message

Pepe

unread,
Nov 11, 2009, 1:03:15 AM11/11/09
to web2py-users
Hi!

I need to manage the application I installed on "Dreamhost", but I do
not have ssl.

Anyone could manage it through ssh tunnel?
Could you explain how?

Thank you very much!

Thadeus Burgess

unread,
Nov 11, 2009, 12:49:14 PM11/11/09
to web...@googlegroups.com

Pepe

unread,
Nov 12, 2009, 7:35:31 AM11/12/09
to web2py-users
thanks, but I'm finally using a self-signed certificate...



On Nov 11, 2:49 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> http://www.google.com/search?q=ssh+port+forwarding&ie=utf-8&oe=utf-8&...

Yarko Tymciurak

unread,
Nov 12, 2009, 2:31:46 PM11/12/09
to web...@googlegroups.com
If dreamhost gives you a norrmal shell login to your hosting account, then you should be ok (if all you have is a web manager, then this will not be useful to you).

Here is what I do - on my local machine, I have something like these bash aliases defined:

alias dreamtunnel='ssh -L 9999:127.0.0.1:5432 myl...@my.dreamhost_access.com'  # or whatever it is...
alias tunnel='ssh -L 8001:127.0.0.1:8001 '   # have to add the login account stuff manually for this

The first one, for example, I use for Postgres / pgadmin:  the 9999 is the local port I tell my local  PgAdmin-III tool to listen to (the 127.0.0.1:5432 is the normal place the remote postgres server is broadcasting to, that is only locally on that remote machine).

For the second one, you can get to web2py admin in this way:  start a web2py server instance (it can be cherrypy, you don't need to go thru apache, as you are the only accessing it; )  as long as the broadcast port ON THE REMOTE doesn't conflict with some other server "talking" on that port, you're ok.    The first "8001" in that line is what port it will tunnel to on your local machine (no address / name, as by default, your local machine will be listening to localhost, or 127.0.0.1;  you could put a "name" for this tunnel to have on your local end - but no need).

Hope that is helpful.  Let me know if you have more questions.

Regards,
- Yarko
Reply all
Reply to author
Forward
0 new messages