How to map VPN path as a network drive in Windows 2000/2003/XP
Ever wanted to know how to use PuTTY to create a VPN, and then Map that VPN session to network drive for secure and easy file access in Microsoft Windows? It is much easier then you may have thought.
For all your client computers (remote computers accessing the server) you will need to download and install PuTTY (See link at bottom of page).
Setup PuTTY
You will need to setup putty the first time you use it. After this you
can just double click (or select,load,and open) the configured connection.
If you skip this you will have to fill out this information each time you use PuTTY.
- Open PuTTY and choose Session
- Choose SSH radio button
- In host name type the name of the computer you are calling. You can put either an IP
address (ie. 66.13.229.102) or domain name (ie. win3k.net).
Cheap wheel balancer.
- In the line below Saved Sessions type the name of this connection
- Click Save

- Go down to X11
- Check Enable X11 forwarding
- Change X display location to localhost:1
- Choose Tunnels
- Check Local Ports accept connections from other hosts
- Check Remote ports do the same
- Type in Source port: 5901, Destination:myhost:5900 where myhost is the IP (ie. 66.13.229.102) or domain name (ie. win3k.net).
affordable seo optimization, reliable.
- Click Add
- Repeat this with ports: 445,137,138,139 (ie. Source port: 445, Destination:win3k.net:445)
neat affordable accommodation Kharkov on this site
- Choose SSH in the left panel
- Check Enable Compression
- Change Preferred SSH protocal version to 2
-
IMPORTANT: Go back to Session and click Save
Connect With PuTTY
- In Session select the Saved Session you configured
- Click Open
- Type in your username and hit Enter
- Type in your password and hit Enter
- After a short pause you should get a prompt.
You can use this window to preform MS-DOS like operations such as 'DIR', 'COPY', 'CD', etc.
Map Drive
- Open My Computer
- On the toolbar go to Tools
- Choose Map Network Drive...
- Choose the drive letter you want (ie. "G").
- In Network Path type 127.0.0.1Shared Folder (ie. 127.0.0.1G )
- Click Finish
You can now use the remote shared folder like a local drive as long as you
have a ssh (PuTTY) session established.
If you are really ambitious you can even use a named path (instead of 127.0.0.1) to do it. All you need to do is modify your
C:\%windows-system%\system32\drivers\etc\lmhosts file.
- For windows 2000 \%windows-system%\ is winnt
- For windows XP/2003 \%windows-system%\ is windows
If you dont have one set up you can copy and rename the sample file named
lmhosts.sam (instructions included in sample file).
References: