Re: Keeping SSH Tunnel Alive When Logged Off
From: Gary Tay Teng Teck (garyttt_at_singnet.com.sg)
Date: 11/26/04
- Next message: Gary Tay Teng Teck: "Re: SSH pipe probelm"
- Previous message: Chris Nystrom: "Re: SSH pipe probelm"
- In reply to: Angus SC2: "Re: Keeping SSH Tunnel Alive When Logged Off"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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"
- Next message: Gary Tay Teng Teck: "Re: SSH pipe probelm"
- Previous message: Chris Nystrom: "Re: SSH pipe probelm"
- In reply to: Angus SC2: "Re: Keeping SSH Tunnel Alive When Logged Off"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|