Re: Keeping SSH Tunnel Alive When Logged Off

From: Gary Tay Teng Teck (garyttt_at_singnet.com.sg)
Date: 11/26/04


Date: Fri, 26 Nov 2004 23:17:45 +0800

Angus SC2 wrote:
>>Use autossh: http://www.harding.motd.ca/autossh. autossh is now
>>available as a package in Cygwin. You can run it when you log in, or
>>better yet, install it as a system service, so it will set up your
>>tunnels unattended right from boot. See /usr/share/doc/autossh-
>>1.2g/README.Cygwin for a description of how to do this.
>>
>>I've been using this for several months now and it's quite reliable. I
>>don't have to think about it any more; the tunnels are just there.
>>
>>--
>>To reply by email, replace "deadspam.com" by "alumni.utexas.net"
>
>
>
> This seems to be what I am after, thank you. However, am I having problems
> setting up my tunnel as a service, could you give me some more advice
> please?
>
> autossh -M 2139 -L 139:127.0.0.1:139 user@remoteserver
> is the tunnel I want to have running as a service...
>
> I am trying this at the moment:
>
> $ cygrunsrv \
>
>> --install autossh \
>> --path /usr/bin/autossh \
>> --args "autossh -M 2139 -L 139:127.0.0.1:139 user@remoteserver" \
>> --env "AUTOSSH_NTSERVICE=yes" \
>>
>
>
> Which installs the service fine but when I try to start the service I get:
> "Could not start the autossh service on Local Computer
> Error 1067: The process terminated unexpectedly"
>
> Any ideas?
>
> Thank you
> Angus
>
>

Ask your good friend the question below exactly including the two quotes:

cygwin "Error 1067: The process terminated unexpectedly"



Relevant Pages

  • Re: Keeping SSH Tunnel Alive When Logged Off
    ... Angus SC2 wrote: ... >>better yet, install it as a system service, so it will set up your ... U r using CYGWIN on Windows. ... I guess the Windows account that you have logged in needs to be given ...
    (comp.security.ssh)
  • Re: Keeping SSH Tunnel Alive When Logged Off
    ... > available as a package in Cygwin. ... > better yet, install it as a system service, so it will set up your ... is the tunnel I want to have running as a service... ...
    (comp.security.ssh)
  • Re: 136khz data signal
    ... The only problem I had with it was trying to run it under X64. ... place them in the same directory as the install program. ... If you could write up how to install Octave with cygwin, ... >> up another linux machine and quit messing with windows ports. ...
    (rec.radio.shortwave)
  • Re: CLOCC sort-of working in Lispbox with Allegro Trial Edition under Windows XP
    ... Install Lispbox: ... > installing something like cygwin or mkstoolkit is good advice when ... than the equivalent native Windows paths. ...
    (comp.lang.lisp)
  • Re: VNC on XP and dtterm on Solaris 8
    ... in Xwindows the PC is serving the windows up for the sun windows ... I'm sure it will become clear when I receive the config files. ... Is Cygwin considered a security hole, or is there some other reason I ... If you install cygwin - which ...
    (comp.unix.solaris)