howto setup an ssh tunnel

domm on 2006-08-02T10:21:06

As I constantly forget how to do this (and as our $work firewall doesn't allow access to my svn repo running at port 1000 (don't ask!), I (mis)use this to remind myself:

ssh -l domm -L 8888:TARGET_HOST:1000 TARGET_HOST

To connect to TARGET_HOST:1000 via localhost:8888


Gets Better With Squid

Dom2 on 2006-08-02T16:07:07

the ssh tunnels get even better if you have a local squid running at home. Then, you can set up a tunnel to your squid at home, point your browser at it, and get at all the private stuff on your home web...
  ssh -L 3128:localhost:3128 me@my.home.server

-Dom

Who Has Time To Remember?

chromatic on 2006-08-02T19:07:22

This is what shell aliases are for. I solved that problem once, then automated it away. :)

Re:Who Has Time To Remember?

domm on 2006-08-04T15:33:02

good idea. done.

Two more thoughts

grantm on 2006-08-03T00:22:49

Along similar lines to chromatic's suggestion of using a shell alias, if you're running a GNOME desktop (and all the cool kids seem to be these days) then you could use my SSHMenu to define SSH connections using a GUI.

Also, if you have SSH access to the box where the SVN repository lives, then you don't need to have an SVN server listening on a port and you don't need forwarding either. Just use svnserve over ssh.