How can I mount my home directory remotely?

The EML allows users to "mount" their home directories onto their personal computers so that they appear as a volume or "hard drive" on their desktop. Due to security restrictions, this is only available within the EML networks. It is possible, however, to use an SSH tunnel to secure the connection from any network address.

For Windows XP

  1. Follow the SSH tunnel instructions, making sure to use the ports for SMB traffic.
  2. If you are on Windows XP, open the Windows command-prompt program and run "net stop server".
  3. On Windows connect to the address (or mount the network drive) \\127.0.0.1\USERNAME where USERNAME is your EML username. 
  4. When prompted, enter your EML username and your EML "PC password" (which may or may not be the same as your UNIX password).
For Windows 7
  1. Install the Loopback Adapter
    • Start the Add Hardware Wizard by either going Start->Settings->Control Panel->Add Hardware or by starting a console window with elevated (Administrator) privileges. In the console window type "hdwwiz.exe"
    • Click Next to continue.
    • Select Install the hardware that I manually select from a list and click Next.
    • Select the entry Network adapters and click Next.
    • In the next screen first select Microsoft from the list of Manufacturers and then select Microsoft Loopback Adapter from the list of Network Adapters. Finally, click Next once more.
    • In the next screen, click Next then Finish to exit the Hardware Wizard
    • Reboot your system.
  2. Configure the Loopback Adapter
    • Go to the Network Connections Center and choose the loopback adapter (usually it is named "Local Area Connection #3") and right-click on it.
    • Choose Properties, after which a new window will appear. 
    • Make sure that
      • the entry Client for Microsoft Networks is NOT enabled, i.e. does not have a checkmark in front of it.
      • the entry File and Printer sharing for Microsoft Networks 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 Properties.
    • A new window will appear and Select Use the following IP address and fill in the 'IP address' with 10.255.255.1 and 'Subnet mask' with 255.255.255. It is not necessary to fill in the 'Default gateway' or a 'DNS server'.
    • Click on Advanced and deselect Automatic metric and fill in the value of 9999 as the 'Interface metric'. Click on the WINS tab and select Disable NetBIOS over TCP/IP.
    • Click on OK. Once you are back in the main 'TCP/IP Properties' screen, click OK again. Once you are back in the main 'Loopback Properties' screen. Click Close.
  3. Tweak the 'SMB' driver
    • Start a console window with elevated (Administrator) privileges.
    • First, we disable the automatic starting of the smb driver:
    • Next we add a portproxy rule to reroute TCP port 445 to a port of our choosing. For this example, use 44445:
    •  The listenaddress is the address of the Loopback adapter configured in the section earlier.
    • The connectaddress must be identical to the listenaddress.
    • The portproxy rule is persisent, so there should be no need to repeat this step after a reboot.
  4.   sc config smb start= demand

    (NOTE the space after the start= !)

      netsh interface portproxy add v4tov4 listenaddress=10.255.255.1 listenport=445

      connectaddress=10.255.255.1 connectport=44445

    IMPORTANT NOTES: 

  5. Reboot and verify
    • Since we have disabled the automatic startup of the 'SMB' driver we have to reboot Windows before proceeding.
    • After Windows comes up and you have logged in, check the status of the 'SMB' driver. Open a command console (no privilege elevation is required) and type
    • The SMB driver should be in the state Running.
    • Verify that the portproxy was applied successfully by checking the open ports on the system. Type in the command console
    • You should see something like
  6.   sc query smb

      netstat -an | find ":445 "

      TCP    10.255.255.1:445    0.0.0.0:0       LISTENING

    If you see '0.0.0.0:445' instead then the 'portproxy' rule was not applied correctly.

  7. Configuring PuTTY with port forwarding
    • Start PuTTY and create a new session or load your existing session for logging in. 
    • 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 44445 (NOT 445!). 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:44445. 
    • For the Destination, fill in eml.berkeley.edu:445. 
    • Click on Add. 
  8. Map the network drive
    • Start Windows Explorer and right-click on Computer and select "Map Network Drive"
    • In the next screen, choose an available drive letter.
    • Type in as the Folder name: \\10.255.255.1\EML_username>
    • Check of Reconnect on Logon and Connect Using Different credentials
    • In the next screen, select "Use Another Account"
    • For the User name, fill in the eml\EML_username 
    • For the Password, fill in your EML samba password and press OK.
    • Click on Finish to complete the network drive mapping.
For Macs
  1. Follow the SSH tunnel instructions, making sure to use the ports for SMB traffic.
  2. Disable Windows file sharing in the Sharing section of System Preferences.
  3. Connect to smb://localhost/USERNAME (via the Finder's Go > Connect to Server). For you web area, use slash www instead of slash USERNAME.
  4. When prompted, enter your EML username and your EML "PC password" (which may or may not be the same as your UNIX password).

If you have not yet set a PC password, contact manager@econ.berkeley.edu.