I need to connect to an SMB share via SSH tunnel from a Windows computer. I have a tunnel set up in Putty to go from port 8445 to myserver:445. There is no way to specify an alternate port for the native Windows SMB functionality. I have installed Windows Subsystem for Linux (WSL) w/ Ubuntu and installed the relevant cifs/samba packages. With putty connected, when I try to mount it, I get the following error:
$ sudo mount -t cifs //localhost/Share /mnt/share -o domain=MYDOMAIN,username=myusername,port=8445
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
$ dmesg
[ 0.010629] Microsoft 4.4.0-19041.1237-Microsoft 4.4.35
[ 0.094413] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/drive
[ 0.094418] : 19
[ 0.094535] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/lib
[ 0.094538] 19
Searches suggest using drvfs to mount instead but I don't see a way to specify an alternative port to drvfs, for which there seems to be very little documentation.
- Do I understand the error message correctly in that cifs is unsupported by Ubuntu in WSL?
- Is cifs supported by another distro in WSL?
- Is there a way to specify an alternate port with drvfs?