Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <434D8E7D.DB3D6563@dessent.net> References: <5d3f5dd52c71ff2e4e5e7b2734b19c0e AT alternative DOT ch> <434D8E7D DOT DB3D6563 AT dessent DOT net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6238b89702e82a90f9db148ecaf4f7dc@alternative.ch> Content-Transfer-Encoding: 7bit From: Leonard Bouchet Subject: Re: ssh tunnel and permission denied Date: Thu, 13 Oct 2005 10:38:51 +0200 To: cygwin AT cygwin DOT com X-IsSubscribed: yes On 13 oct. 05, at 00:30, Brian Dessent wrote: > Leonard Bouchet wrote: > >> # Step 1: open the ssh tunnel >> $ ssh -fNL 139:myserver:139 user AT myserver > > I'm surprised that this works. Normally if you try this on a windows > machine the port forwarding setup will fail because the local SMB > service on that machine is already listening on 139, and so it's > impossible for ssh to bind to that port. How are you getting around > this? Have you tried adding verbosity (-vvv) to the ssh command to see > if there are errors setting up the port forwarding? I'm simply not sharing anything on the W98 box. On the XP box where I need the sharing facility, I'm planning to add a loopback card with another ip (procedure found here: ). Don't know yet how I will bind the forwarding to that network through cygwin, tough. I'm quite sure the port forwarding works, though, because: 1. I tried to add verbosity, and it seems that everything is ok ... debug1: Authentication succeeded (publickey). debug1: Local connections to LOCALHOST:139 forwarded to remote address myserver:139 debug3: channel_setup_fwd_listener: type 2 wildcard 0 addr NULL debug1: Local forwarding listening on 127.0.0.1 port 139. debug2: fd 4 setting O_NONBLOCK debug3: fd 4 is O_NONBLOCK debug1: channel 0: new [port listener] ... 2. My lmhosts entry for 'myserver' is set to 127.0.0.1 and I can't get the next step to work if I don't forward the port according to step 1... Any idea on what it's going on? Thanks a log, -leonard bouchet -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/