Try read http://www.ibiblio.org/gferg/ldp/Samba-with-SSH/Samba-with-SSH-4.html
4. Setting up an SSH tunnel The first thing to do is to make sure the sshd daemon !!!! is installed and running on linux_2 !!!!! and that linux_1 has SSH installed!!!! Next on linux_1 we need to set up an SSH tunnel from the local port 139 to the windows_server port 139, the SSH tunnel needs to bounce through linux_2 for linux_1 to be able to reach windows_server. You will need to be root to open this SSH tunnel as port 139 is a privileged port. (It is possible to set this up on a different local port if you wish to run SSH from user space and then you must specify the port to use in your smbmount command discussed later in this document.) The command to set up the tunnel using the SSH2 protocol is as follows. ssh -2 -q -f -N -g -L 139:windows_server:139 [EMAIL PROTECTED] In this example I have used hostnames 'windows_server' and 'linux_2' - these should be replaced with the ip addresses of the machines you wish to connect to. The first '139' corresponds to the port of the local machine, then the destination server and port are specified, and finally the [EMAIL PROTECTED] is the server you wish the ssh tunnel to bounce through. After executing this command you should be prompted for the password for 'username' on server linux_2 . This howto says about two linux machines but this can be windows_1 with proper ssh client instaled. On xp then must run ssh -2 -q -f -N -g -L 139:linuxsambaIPorDN:139 [EMAIL PROTECTED] <<<this user is for sshd not samba But command smbmount "\\\windows_server_NETBIOS_NAME\destination_folder" /mnt/remote_share/ -o username=WINDOWS_USER,password=WINDOWS_PASSWORD,ip=127.0.0.1 must be replaced with net use .... net view .... but net view \\127.0.0.1 this is XP machine exactly direct tunnel to linux2 net view \\netbiosnamelinux2 or netbios name of any machine on network where samba and sshd is running but if tunneling is only set for port 139 net view command not work it need another ports. Exactly work only net use. If you create tunnel only for encrypt data (139) and your network is direct conect routed windows to linux then may net view work. Thats all folks. ----- Original Message ----- From: "Adlar Kim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Marian Mlcoch, Ing" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2003 5:33 PM Subject: Re: [Samba] System Error 53.. > Can you tell me how exactly the linux ssh will forward to linux localhost port > 139? Thank you.. make sure the sshd daemon !!!! is installed and running on linux !!!!! this daemon create this forwarding when client connect to with proper -L parameter as describe howto up. > > -- Adlar > > >> "Marian Mlcoch, Ing" wrote: > > If i good read you miss tunnel config > > Need create tunnel this: > > windows port 139/localhost --->>> ssh client forward crypted to :linux ip: > > port ssh server ??? --->>> on linux ssh decrypt and forward to linux > > localhost port 139 > > > > You miss forward windows 139 to localhost 139 is loop forwarding<<<??? > > > > Bye. > > > > ----- Original Message ----- > > From: "Adlar Kim" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, July 10, 2003 6:21 AM > > Subject: [Samba] System Error 53.. > > > > > > > I am trying to setup tunneling samba over ssh. I followed all the steps on > > the > > > samba howto page. Then, things worked quite smoothly until I tried > > > "net view 127.0.0.1". I get "System Error 53 has occurred". Here's what I > > did: > > > > > > I have linux server running samba 2.2.8a and windows XP as client machine. > > > > > > @ In windows, disabled file and printer sharing and enabled LMHOSTS > > lookup. > > > > > > @ In windows, created lmhosts with '127.0.0.1 fakename' > > > > > > @ In widnows, ran ssh client with local forwarding. 139 localhost:139 > > > > > > @ In linux, I can telnet to 127.0.0.1 139 > > > > > > @ In windows, I can telnet to 127.0.0.1 139. If I run 'netstat -tn | grep > > 139' > > > from ssh client, I get something like: > > > > > > $ netstat -tn | grep 139 > > > tcp 0 0 127.0.0.1:139 127.0.0.1:2708 > > ESTABLISHED > > > tcp 0 0 127.0.0.1:2708 127.0.0.1:139 > > ESTABLISHED > > > > > > > > > @ If I run 'net view fakename' from cmd window I get: > > > > > > System error 53 has occurred. > > > The network path was not found. > > > > > > > > > -- Adlar > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: http://lists.samba.org/mailman/listinfo/samba > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba