[linux-cifs-client] smbclient works but mount.cifs doesn't over SSH
tunnel????
Jeffrey J. Kosowsky
linux-cifs-client at kosowsky.org
Tue Nov 28 00:22:12 GMT 2006
I am trying to mount remote winXP shares on my Linux server as
follows:
1. First I ssh from my WinXP box into my Linux server to establish
the port forwarding as follows:
ssh mylinuxserver -R 6139:winxpbox:139
2. Then on the Linux box I run (as root):
smbclient "\\\winxpNetbiosName\ShareName" -U winlogin -I 127.0.0.1 -p 6139
which works!!!!
3. But, running (as root)
mount.cifs "\\\winxpNetbiosName\ShareName" /mountpoint -o username=winlogin,ip=127.0.0.1,port=6139
doesn't work and returns the error:
mount error 111 = Connection refused
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
4. However, mount.cifs does work if I do it without the ssh tunnel, e.g.
mount.cifs "\\\winxpNetbiosName\ShareName" /mountpoint -o username=winlogin
I am confused:
#2 would seem to indicate that the SSH tunnel is set up properly and
the linux server is seing the winxp samba share properly.
#4 would seem to indicate that mount.cifs is otherwise working
properly and that I am using the right arguments for it.
Any idea why this is not working? Why does mount.cifs return "host is
down" seemingly indicating that it can't find the WinXP box while
smbclient has no trouble finding it.
I am running Fedora Core 6/Linux 2.6.18 with samba-3.0.23c-2.
Thanks,
jeff
More information about the linux-cifs-client
mailing list