Next Previous Contents

6. Telling smbmount to use your newly created SSH tunnel.

smbmount is the command that is used to mount a remote Windows share to a local directory. The version of smbmount I am using is Version 2.2.4.

Remember to replace linux_1, linux_2 and windows_server with the relevant ip addresses for your setup.

smbmount "\\\windows_server_NETBIOS_NAME\destination_folder" /mnt/remote_share/ -o username=WINDOWS_USER,password=WINDOWS_PASSWORD,ip=127.0.0.1

The windows_server_NETBIOS_NAME is the name of the windows computer - usually this would cause smbmount to figure out the ip of that host but as we specify the ip (linux_1's ip or localhost) in the '-o' part of the command this overrides the normal NETBIOS name resolution smbmount would do. The /mnt/remote_share is the directory that you set up on linux_1 in the previous step. the username and password should be the valid username and password that the Windows machine requires to get a login.

If all has gone well and you provided a valid username and password, you should now be able to see the contents of the remote windows_servers destination_folder directory in your linux_1 /mnt/remote_share directory. You should also be able to write to the /mnt/remote_share directory and see a file appear in the windows_share/destination_folder directory.


Next Previous Contents