Matthias Meyer wrote:

[snip]
$ cygrunsrv -I forward -p /usr/bin/ssh -a "-v -f -2 -N -L 5729:localhost:5729 [EMAIL 
PROTECTED]" -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 RSA or DSA authentication is read. The default is ~/.ssh/identity for protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro- tocol version 2. Identity files may also be specified on a per-
             host basis in the configuration file.  It is possible to have
multiple -i options (and multiple identities specified in config-
             uration files).

--
René 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/

Reply via email to