This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: start ssh port forwarding at boot time
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 15 Jun 2008 16:53:41 -0500
- Subject: Re: start ssh port forwarding at boot time
- References: <200806152323.12778.Matthias.Meyer@gmx.li>
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@myhost.tld
[snip]
What should I do?
Run the service as your user so it can use your keys :
-u, --user <user name> Optional user name to start service as.
Defaults to SYSTEM account.
-w, --passwd <password> 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
--
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/