Re: start ssh port forwarding at boot time

2008-06-17 Thread Andrew Schulman
/usr/share/doc/autossh-1.4a/README.Cygwin has information about how to set this up using autossh and cygrunsrv. Since you're the Cygwin maintainer of autossh, I have a question: shouldn't the service be installed with -y tcpip? just like sshd, to avoid problems at startup. I wasn't

Re: start ssh port forwarding at boot time

2008-06-16 Thread Andrew Schulman
Oh, and on the topic of automatically setting up ssh port forwarding as a service: OP should definitely use autossh. This will keep the connection alive if it drops, automatically restarting it as necessary. Otherwise, the first time it dies the service will stop and the user must manually

Re: start ssh port forwarding at boot time

2008-06-16 Thread Matthias Meyer
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 [EMAIL PROTECTED] -u root -w password $ cygrunsrv -S forward cygrunsrv: Error starting a service: StartService: Win32 error 1069: Der

Re: start ssh port forwarding at boot time

2008-06-16 Thread René Berber
Andrew Schulman wrote: Oh, and on the topic of automatically setting up ssh port forwarding as a service: OP should definitely use autossh. This will keep the connection alive if it drops, automatically restarting it as necessary. Otherwise, the first time it dies the service will stop

start ssh port forwarding at boot time

2008-06-15 Thread Matthias Meyer
Hello, 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 [EMAIL PROTECTED] Unfortunately this will not work for

Re: start ssh port forwarding at boot time

2008-06-15 Thread 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 [EMAIL PROTECTED] [snip] What should I

Re: start ssh port forwarding at boot time

2008-06-15 Thread Matthias Meyer
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

Re: start ssh port forwarding at boot time

2008-06-15 Thread René Berber
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

Re: start ssh port forwarding at boot time

2008-06-15 Thread René Berber
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

Re: start ssh port forwarding at boot time

2008-06-15 Thread Brian Dessent
René Berber wrote: Sorry I didn't realize your user name is root, seems that cygrunsrv is not able to change users which is a Windows capability option. Cygrunsrv does not require the ability to change users as sshd does. The service is configured to run as a given user in the service control

Re: start ssh port forwarding at boot time

2008-06-15 Thread Brian Dessent
Brian Dessent wrote: I still think you were right in that the OP was incorrectly using their ssh username/password when they should be using their Windows username and password. Oh, and on the topic of automatically setting up ssh port forwarding as a service: OP should definitely use autossh

Setting up Cygwin for SSH port forwarding?

2003-10-30 Thread Jon Hughes
I'm really sorry if this is available elsewhere, I searched the archives and google and found nothing useful.. I pretty much need step by step instructions for setting up cywin to create a ssh tunnel for using VNC on my home computer from work. Thank you, Jon

Re: Setting up Cygwin for SSH port forwarding?

2003-10-30 Thread Larry Hall
At 12:54 PM 10/30/2003, Jon Hughes you wrote: I'm really sorry if this is available elsewhere, I searched the archives and google and found nothing useful.. I pretty much need step by step instructions for setting up cywin to create a ssh tunnel for using VNC on my home computer from work.

ssh port forwarding

2003-02-06 Thread Matt
I have an error msg that it lloks like people have had before, but where I've seen people mention the error before was when they really were not providing the neccessary parameters. I believe I am providing the correct syntax. I am trying to forward TCP ports over ssh. I have had this up and

Re: ssh port forwarding

2003-02-06 Thread Markus Schönhaber
Matt wrote: I am trying to forward TCP ports over ssh. I have had this up and running on three different machines. Now they all report the same error: Matt@aptivaxp ~ $ ssh 5903:localhost:5900 [EMAIL PROTECTED] ssh: 5903:localhost:5900: no address associated with hostname. Try -L: $ ssh -L

Re: ssh port forwarding

2003-02-06 Thread Markus Schönhaber
Markus Schönhaber wrote: Matt wrote: I am trying to forward TCP ports over ssh. I have had this up and running on three different machines. Now they all report the same error: Matt@aptivaxp ~ $ ssh 5903:localhost:5900 [EMAIL PROTECTED] ssh: 5903:localhost:5900: no address associated with