ssh reverse tunnels
On the ssh server machine, I type:
ssh -R40022:localhost:22 -R40445:cifs-fileserver-hostname:445 -R40548:localhost:548
-R45900:localhost:5900 user@remoteclienthostname
This sets up ssh and afp and vnc reverse tunnels to the ssh server machine, and presumably would set up a cifs reverse tunnel to a different machine (cifs fileserver) on the same internal network as the ssh/afp/vnc server.
So that way, on the remote client, I can ssh -p40022 localhost and have a shell session on the ssh server, or I can Finder ⌘k to afp://localhost:40548 and have a remote afp mount of the ssh server machine on the remote client, or I can Finder ⌘k to vnc://localhost:45900 and have a screen sharing session of the ssh server machine on my remote client. These all work no problem.
What's not working is getting to the cifs server machine via Finder ⌘k to cifs://localhost:40445. I get a splash screen that says "server localhost is available on my computer so access volumes and files locally."
I know that on the ssh server machine, when I Finder ⌘k to cifs://local-fileserver-host-name, it is talking to the fileserver's port 445, coz' I tcpdumped it when I was figuring out what ports needed to be reverse tunneled. Neither hostname nor numeric IP address in the -R40445:fileserver:445 piece results in any change of behavior.
So can't quite figure out why I can't get to the fileserver machine via the reverse tunnel. Anybody got any good ideas?
2008 Mac Pro (10.6.4), 2008 MacBook aluminum (10.6.4), 2007 iMac (10.6.4), 2001 Quicksilver (10.5.8), and 2004 iMac G5 (10.5.8)