Disclaimer

(This page is very much work in progress)

Sometimes you want to access a Windows Share or Samba remotely and securely.

There are many ways to do that.
One of the ways is to tunnel the SMB traffic (tcp port 445) through ssh.

Setup a ssh server on the remote server side, tweak the remote firewall to forward tcp port 22 (ssh traffic) into the ssh server.

On the client side, add a "Microsoft Loopback Adapter"
gFor Vista: see this page.
g For XP: see this page.

After you added the Loopback Adapter, assign a private IP address to the Loopback adapter.
Choose a private IP address specified in RFC1918.

On the client side, setup a ssh client such as putty.
In putty, add a tunnel to tunnel port 445 of the private IP address (of the Loopback adapter) to the actual IP address of the remote server that runs Windows Share or Samba.

©
 2007-2009 Nicholas Fong

Last revised:  December 30, 2007