I want to map a network drive at home (over SSH) from my workplace.
Prepare NIC
1) Install a loopback adapter.
2) Disable “Client for Microsoft Networks”, “File and Printer Sharing for Microsoft Networks” and anything else except “Internet Protocol (TCP/IP)”.
3) Set a static IP address, I use 10.0.0.1 in this example (no gateway, no DNS).
4) Edit advanced TCP/IP settings, change to the WINS tab, disable “NetBIOS over TCP/IP” and enable lmhosts lookup. If you don’t disable “NetBIOS over TCP/IP” you will receive this error message when you want to establish the SSH tunnel: “Network error: Permission denied” because port 139 is used by Windows.
5) Edit/create the lmhosts file (%windir%system32driversetclmhosts) and add this line:
10.0.0.1 REMOTE-MACHINE-NAME
6) Try to ping REMOTE-MACHINE-NAME.
Ok the NIC is now prepared, lets play with SSH…
Create the SSH tunnel
1) Load your SSH session in putty.
2) Add a new SSH local tunnel:
1 | L10.0.0.1:139 REMOTE-MACHINE-IP:139 |
Note: the text field in putty for the “Source Port” looks too small, ignore it, you can enter the local IP address as well. Do NOT enter the machine name, use the IP address!
3) Save the session and connect.
That’s it, now we need to map our new drive:
1 | C:> net use * \10.0.0.1c$ /user:10.0.0.1administrator password |




Will a loopback adapter be needed in Windows Vista?
It would be nice if Windows would support something like:
\localhost:1234myfolder
where 1234 is the local port that I have forwarded to.
Will a loopback adapter be needed in Windows Vista?
It would be nice if Windows would support something like
\localhost:1234myfolder
where 1234 is the local port that I have forwarded to.
Many thanks for this straightforward solution!
Tim
Hey, thanks, looks great,
i tried this on Win7 but i cannot authenticate on the Server.
Tested with IPAdministrator and MACHINENAMEAdministrator, allways failed.
Any sugestions? Maybe some NTLM settings in local Policy?
thanks…