Mounting your Nikhef home directory using SSH
when Windows File Sharing is enabled
Introduction
This tutorial contains screenshots for the Dutch version of Windows
(Thanks, Oscar!).
A version with screenshots for the English version of Windows is also
available.
To be able to mount a Windows share over SSH we will need
- Administrator access to the local computer.
- PuTTY v0.58+,
which is an excellent and free implementation of SSH for Windows.
It is assumed that you are familiar with the PuTTY user interface.
- One real or virtual network adapter with the following properties:
- Bound to the Client voor Microsoft-netwerken.
- with TCP/IP property NetBIOS via TCP/IP ingeschakeld.
Normally you should already have such an adapter, as otherwise you
would not be able to mount any Windows shares.
- One real or virtual network adapter with the following properties:
- NOT bound to the Client voor Microsoft-netwerken.
- NOT bound to the Bestands- en printerdeling
voor Microsoft-netwerken.
- with TCP/IP property NetBIOS via TCP/IP uitgeschakeld.
(Don't worry, step-by-step instructions on how to achieve this are below...)
This part of the tutorial is split into the following steps:
- As most people do not have a spare real network adapter in their computer,
we will add an extra virtual network adapter by
installing the
Microsoft Loopback Adapter.
- After that, the network adapter must be properly
configured.
- Then we set up a special
PuTTY session with the right port-forwarding.
- Finally, we start PuTTY and mount our Nikhef home
directory.
To install the Loopback adapter follow these steps:
- Go to Start->Instellingen->Configuratiescherm->Hardware Toevoegen.
The Hardware Wizard will come up:
- Click Volgende, after which the Hardware Wizard will attempt to find new
devices. After a while, this screen will come up:
- Select Ja, then click Volgende, after which you'll see
a new screen:
Scroll down in the list of Geïnstalleerde hardware to the entry
Een nieuw apparaat toevoegen and select it, then
click Volgende.
- A new screen will come up:
Select De hardware installeren die ik handmatig in een lijst selecteer
and click Volgende.
- Now you'll see:
Scroll down in the list to the entry Netwerkadapters,
select it and then click Volgende.
- In the next screen
first select Microsoft from the list of Fabrikanten
and then select Microsoft Loopback-adapter from the
list of Netwerkadapters. Finally, click Volgende once more.
- Almost finished:
This is your last chance to abort, otherwise, click Volgende.
- After a while you should see:
Click Voltooien to exit the Hardware Wizard.
You are now ready to configure your newly installed Loopback adapter. Even though
Windows might not ask you to, reboot anyways (heey, it's a Microsoft OS ;-)).
From reports I've seen on the Internet a reboot is sometimes required for the
loopback adapter to come up properly.
Now that your newly installed loopback adapter is up and running we must configure
it properly:
- Right-click on the Mijn Netwerk Omgeving icon on your
desktop.

- Select Eigenschappen, after which a new window will appear.
- Choose the loopback adapter (check the column Device name to select
the appropriate adapter) and right-click on it.
- Again, choose Eigenschappen, after which a new window will appear
Make sure that
- the entry Client voor Microsoft-netwerken
is NOT enabled, i.e. does not have a checkmark in front of it.
- the entry Bestands- en printerdeling voor Microsoft-netwerken
is NOT enabled, i.e. does not have a checkmark in front of it.
- the entry Internet Protocol (TCP/IP) is enabled.
- Select the entry Internet Protocol (TCP/IP), then click on
Eigenschappen.
- A new window will appear:
Select Het volgende IP-adres gebruiken and fill in the 'IP-adres'
and 'Subnetmasker' as above.
It is not necessary to fill in the 'Standaard-gateway' or a 'DNS server'.
- Click on Geavanceerd... to make the following window appear:
Deselect Automatische metric and fill in the value of 9999
as the 'Interface-metric' as shown above.
- Click on the WINS tab:
and select NetBIOS via TCP/IP uitschakelen.
- Click on OK.
- You are now back in the main Eigenschappen voor Internet protocol screen.
Click OK again.
- You are now back in the main Loopback Eigenschappen screen.
Click Sluiten.
Set up a special PuTTY session with the appropriate port-forwarding:
- Start PuTTY and create a new session or load your existing session for
logging in on
login.nikhef.nl. Choose host login.nikhef.nl
and protocol SSH.
- Expand the Connection->SSH menu option in the Category tree-list
and select Tunnels.
- Add a new forwarded port:
- For the Source port, fill in the IP address of your
loopback adapter, plus the port 139. The entry field might seem
to small for it, but it will work. If you have configured your
loopback adapter exactly as in the previous section, then fill in
10.255.255.1:139.
- For the Destination, fill in beuk.nikhef.nl:139.
- Click on Add.
- You should now see:
- In the Category tree-list on the left, scroll back up and choose
Session again. Save your session.
Now that we have configured both our loopback adapter and PuTTY we can put it
all together and mount our Nikhef home directory as a Windows share:
- Start your newly created Nikhef-PuTTY session and login on
login.nikhef.nl as normal.
- Make sure port-forwarding is working properly by checking the PuTTY
event log. Select the Window menu of the PuTTY screen (top left) and
select Event log. You should see a log similar to:
If not, then check your PuTTY session options first.
- Go to Start->Uitvoeren and type
http:\\10.255.255.1\user\<Your-nikhef-userid>
- You will be prompted to authenticate yourself:
For the Gebruikersnaam, fill in the domain NIKHEF\ followed
by your Nikhef-Windows userid.
For the Wachtwoord, fill in your Nikhef-Windows password, which
might be different from the password you use to log in on
login.nikhef.nl and press OK.
- You should now see your Nikhef home directory in Windows Explorer!
Congratulations!
Mapping a network drive
To make life even easier it might be handy to map a network drive to your
Nikhef home directory:
- Start Windows Verkenner and choose Extra->Netwerkverbinding maken.
- In the next screen, fill in:
- Choose an available drive letter.
- Do NOT click on Bladeren... but type in as the Map
name:
\\10.255.255.1\user\<Your-nikhef-userid>
- Do NOT click on Voltooien, click on
andere gebruikersnaam.
- In the next screen, fill in your Nikhef-Windows userid:
For the Gebruikersnaam, fill in the domain NIKHEF\ followed
by your Nikhef-Windows userid.
For the Wachtwoord, fill in your Nikhef-Windows password, which
might be different from the password you use to log in on
login.nikhef.nl and press OK.
- Click on Voltooien to complete the network drive mapping.
- You should now see a new drive letter appear in the Mappen tree-list
in Windows Explorer. Click on it to verify that you are indeed viewing your
Nikhef home directory.
That's all, folks!
Comments to Jan Just Keijser
| lastmod = 03/06/2008 13:41