delorie.com/archives/browse.cgi | search |
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 <Matthias DOT Meyer AT gmx DOT li> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: start ssh port forwarding at boot time |
Date: | Mon, 16 Jun 2008 19:45:22 +0200 |
User-Agent: | KMail/1.9.7 |
References: | <200806152323 DOT 12778 DOT Matthias DOT Meyer AT gmx DOT li> <200806160024 DOT 16757 DOT Matthias DOT Meyer AT gmx DOT li> <g346il$e7u$1 AT ger DOT gmane DOT org> |
In-Reply-To: | <g346il$e7u$1@ger.gmane.org> |
MIME-Version: | 1.0 |
Message-Id: | <200806161945.22923.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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 Montag 16 Juni 2008 schrieb René Berber: > 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 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. > > User means Windows user, not root. > > Actually there is another way to do the same, instead of running the > service as your Windows user (the one that has ~/.ssh/<the keys>), you > can pass the -i /path/to/your/home/.ssh/id_dsa (or id_rsa) to ssh. > > Snippet from man ssh: > > -i identity_file > Selects a file from which the identity (private key) for Thanks René This as well as: ln -fs /home/root/.ssh/known_hosts /etc/ssh_known_hosts Now it is running! I will try autossh, as recommended by Andrew. Thanks again 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |