Prakash Velayutham
2007-Nov-18 21:13 UTC
[Samba] smbmount fails when trying inside a SSH tunnel
Hello All, Here is the problem definition: * I have a Windows XP SP2 system (part of a Samba NT domain). The system has a share created in its local disk which has read access for everyone. * I have a Linux (SuSE 9.3) system. * Using PuTTY, I create a SSH tunnel from the Windows XP to Linux (-R 4000:localhost:139) to mount the smb shared folder on the Linux system. * When I do "smbclient -L CMCCLIENT6 -p 4000 -U adminuser", it lists the shares fine in the Linux server. * But, I am not successful in mounting the share using smbmount. Here are some of my tries: ribosome:~ # mount -t smbfs -o username=CMC-NT \adminuser,ip=127.0.0.1,port=4000 //127.0.0.1/foldertoshare /shares Password: 2079: session request to 127.0.0.1 failed (Call returned zero bytes (EOF)) 2079: session request to 127 failed (Call returned zero bytes (EOF)) ribosome:~ # mount -t smbfs -o username=adminuserribosome:~ # smbmount "\\\CMCCLIENT6\foldertoshare" /shares -o username=adminuser,ip=127.0.0.1,port=4000 27896: session request to CMCCLIENT6 failed (Call returned zero bytes (EOF)) 27896: session request to *SMBSERVER failed (Call returned zero bytes (EOF)) SMB connection failed ribosome:~ # smbmount "\\\CMCCLIENT6\foldertoshare" /shares -o username=adminuser,ip=127.0.0.1,port=4000 27896: session request to CMCCLIENT6 failed (Call returned zero bytes (EOF)) 27896: session request to *SMBSERVER failed (Call returned zero bytes (EOF)) SMB connection failed Anything I am missing? Thanks, Prakash