X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: start ssh port forwarding at boot time Date: Sun, 15 Jun 2008 18:11:21 -0500 Lines: 28 Message-ID: References: <200806152323 DOT 12778 DOT Matthias DOT Meyer AT gmx DOT li> <200806160024 DOT 16757 DOT Matthias DOT Meyer AT gmx DOT li> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <200806160024.16757.Matthias.Meyer@gmx.li> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Matthias Meyer wrote: [snip] > $ cygrunsrv -I forward -p /usr/bin/ssh -a "-v -f -2 -N -L 5729:localhost:= 5729 user AT myhost DOT tld" -u root -w password > $ cygrunsrv -S forward > cygrunsrv: Error starting a service: StartService: Win32 error 1069: > Der Dienst konnte wegen einer fehlerhaften Anmeldung nicht gestartet werd= en. >=20 > which means in english: > The service could not be started because of an incorrect registration. > But I'm sure. Username and password are correct. The message in english: $ net helpmsg 1069 The service did not start due to a logon failure. Sorry I didn't realize your user name is "root", seems that cygrunsrv is=20 not able to change users which is a Windows capability option. You can use the other alternative (ssh -i ...) or add the required=20 rights or capabilities, or use stunnel instead of ssh. --=20 Ren=E9 Berber -- 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/