How can autossh start remote connection, if computer is off?

Cyrille Lefevre
Thu Nov 11 23:49:00 GMT 2010

Le 10/11/2010 02:38, David Rothenberger a écrit :
> On 11/9/2010 5:26 PM, 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@" -e
>> 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.

you may also specify -y tcpip to wait for the network is up.

PS : what is $port ? have you $port defined in your windows environment
? I use -M 0.


Cyrille Lefevre

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list