This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How can autossh start remote connection, if computer is off?
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 09 Nov 2010 17:38:12 -0800
- Subject: Re: How can autossh start remote connection, if computer is off?
- References: <AANLkTikLhnGkesbDcNsJmdXAeC7rAq_+D4TgWFd7fEGr@mail.gmail.com> <AANLkTim5veZbCw+iQRZHsxC7xWmHv_ij4NxfO_oKTMCp@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On 11/9/2010 5:26 PM, cygwin.20.gyurman@spamgourmet.com wrote:
> How Can I do autossh connection with any computer which is off, but
> sometime coming to power on?
> I used this:
> cygrunsrv -I AutoSSH -n -O -u name -w pass -p /usr/bin/autossh -a "-M
> $port -R 5903:localhost:22 name@192.168.1.102" -e
> "AUTOSSH_NTSERVICE=yes AUTOSSH_GATETIME=0"
> But not working. How can I do?
I don't know if this will solve your problem, but you can only specify
one "VAR=VALUE" string with the -e switch. You have to repeat the -e
switch to define multiple environment variables.
... -e 'AUTOSSH_NTSERVICE=yes' -e 'AUTOSSH_GATETIME=0'
--
David Rothenberger ---- daveroth@acm.org
Experience, n.:
Something you don't get until just after you need it.
-- Olivier
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple