Jump to content

Samba network drive over ssh (not tested on windows systems yet)


Recommended Posts


I have been working quote a bit with getting my samba network drive connection encrypted and after a bit of work i finally got it working and wanted to share it with all you guys out there.  All the text with underline is supposed to be links to pictures illustrating whats happening.


Open the 'Control Panel' from the 'Start-menu' and choose 'Add Hardware'.  http://peecee.dk/index.php?id=62021

Choose 'Yes, I have already connected the hardware'.  Click 'Next'.  http://peecee.dk/index.php?id=62022

Choose 'Add a new hardware device' from the bottom of the list.  Click 'Next'.  http://peecee.dk/index.php?id=62023Choose 'Install the hardware that I manually select from a list'.  Click 'Next'.  http://peecee.dk/index.php?id=62024

Choose 'Network adpters'.  Click 'Next'.  http://peecee.dk/index.php?id=62025

Choose 'Microsoft' as manufacturer and 'Microsoft Loopback Adapter' as network adapter.  Click 'Next' and then 'Finish'.  http://peecee.dk/index.php?id=62026

Now setting up the microsoft loopback device

Choose 'Run' from the 'Start-menu' and write 'cmd' and press OK.  Now write 'ipconfig /all' and press enter.  Remember your 'Gateway' and 'DNS  ' settings.  http://peecee.dk/index.php?id=62027

Open 'Network Connections' from the 'Control Panel' and right-click the new vitual connection and choose 'Properties'.  http://peecee.dk/index.php?id=62028

Uncheck 'File and Printer Sharing for Microsoft Networks'.

Check 'Client for Microsoft Networks'.

Choose 'Internet Protocol (TCP/IP) and click the 'Properties' button.  http://peecee.dk/index.php?id=62029 && http://peecee.dk/index.php?id=62030

Choose 'Use the following IP adress'.

As 'IP address' enter '172. 16. 10. 1' (this address may not be in use on the network already if it is you can use 172. 16. 11. 1 instead (just an ip that is not within your current subnet)).

As 'Subnet mask' enter '255. 255. 255. 0'.

As 'Default gateway' enter the gateway address found earlier.

As 'Preferred DNS server' enter the DNS address found earlier.

Click 'Advanced'.  http://peecee.dk/index.php?id=62031

Choose the 'WINS' tab.

Check the 'Enable LMHOSTS lookup' checkbox.

Under 'NetBIOS setting' choose 'Disable NetBIOS over TCP/IP'.  Click 'OK'.

Restart your computer.  http://peecee.dk/index.php?id=62032

Setting up PuTTY (SSH-tunneling)

Open 'PuTTY'.

Enter your ssh server ip or dns as 'Host name' and choose 'SSH'.

Choose 'Connection' -> 'SSH' -> 'Tunnels' in the menu on the left.  http://peecee.dk/index.php?id=62033

Enter '172. 16. 10. 1:139' as 'Source port' (if you entered 172. 16. 11. 1 earlier enter '172. 16. 11. 1:139'.

Enter the ip or dns of your samba server, if localhost then '127. 0. 0. 1:139' as 'Destination'.  Click 'Add'.  http://peecee.dk/index.php?id=62034

Now you should be good to go.  try start -> run  and write 172. 16. 10. 1 or what ever you choose the ip to be and see whats happening

If you wish to use the name eks.  domain-server then go to C:WINDOWSsystem32driversetchosts and write "172. 16. 10. 1 domain-server" (you must fill these two values out with the information you are using.

[EDIT]Links fixed[/EDIT]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...