I'd been using OpenSSH running under Cygwin for quite a while now and just recently started port forwarding SMB so I could copy files between local and remote computers over an encrypted tunnel. More accurately, I wanted to sync files between Windows boxes and a remote NAS device running NSLU2-Linux using robocopy. This involved installing a loopback adapter, assigning it an IP address (10.0.0.222), then running SSH:
ssh -L 10.0.0.222:445:localhost:445 user@remoteip
Once connected, I can see my remote Windows shares by specify a UNC path (\\10.0.0.222) in Windows Explorer. This was all working great until I installed Vista patch KB942624 which fixes a security issue in SMB. It fixes it so good that now I get the following error message with the above command right after I type in my password:
bind: Operation not permitted
channel_setup_fwd_listener: cannot listen to port: 445
Could not request local forwarding.
I've tested this on three different Windows Home Premium installations with the same result. Uninstalling the patch reverts back to expected behavior (it works again.) So I guess I won't be installing this patch.