Datamal Blog

Tuesday, February 21, 2006

Proxy Web Server and SSH.


Doing some ssh setup for new Mac Mini, first I need to get it working on WinXP.

Installed WinProxy on port 4480, it's working fine.
Installed OpenSSH for now as oppossed to Cygwin, sshd is up and running fine.
When I


ssh -l ruser -L 4478:localhost:4480 localhost

it works fine; I can set Firefox to use port 4478 which gets forwarded to 4480 and everything is fine.
However, localhost (127.0.0.1) also has an ethernet interface with ip 192.168.0.1 which is the interface that the rest of the machines on my local network are on. So when I do


ssh -l ruser 4478:localhost:4480 192.168.0.1

I get

ssh: connect to host 192.168.0.1 port 22: Connection timed out

It just won't connect to that interface which defeats the object as I don't need a proxy on the machine with a connection!

PS. It's also possible to do the following :


ssh -L 4478:localhost:4480 ruser@localhost


note the user id has moved to the remote machine part, I think it's a little neater.