X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Copfilter: Client is part of local network, skipped Spamassassin X-Copfilter: Sender is in whitelist, skipped SpamAssassin From: Matthias Meyer To: cygwin AT cygwin DOT com Subject: Re: start ssh port forwarding at boot time Date: Mon, 16 Jun 2008 00:24:16 +0200 User-Agent: KMail/1.9.7 References: <200806152323 DOT 12778 DOT Matthias DOT Meyer AT gmx DOT li> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200806160024.16757.Matthias.Meyer@gmx.li> X-Copfilter-Originating-IP: 192.168.0.98 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Am Sonntag 15 Juni 2008 schrieb René Berber: > Matthias Meyer wrote: > > > I try to start port forwarding shortly after boot by using cygrunsrv. > > > > $ cygrunsrv -Q forward5729 > > Service : forward5729 > > Current State : Stopped > > Command : /usr/bin/ssh -v -f -2 -N -L 5729:localhost:5729 user AT myhost DOT tld > [snip] > > What should I do? > > Run the service as your user so it can use your keys : > > -u, --user Optional user name to start service as. > Defaults to SYSTEM account. > -w, --passwd Optional password for user. Only needed > if a user is given. If a user has an empty > password, enter `-w '. If a user is given but > no password, cygrunsrv will ask for a password > interactively. > > -- > René Berber root AT hostxp ~ $ 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 werden. which means in english: The service could not be started because of an incorrect registration. But I'm sure. Username and password are correct. Nothing will be written in /var/log/forward.log. Thanks Matthias -- Don't Panic -- 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/