Installing autossh as a service with cygwin?

0

I am trying to install autossh as a service via cygwin:

cygrunsrv -I AutoSSH -p /usr/bin/autossh -a “-M 20000 -R 7000:10.xxx.xxx.193:22 jessica@host” -e AUTOSSH_NTSERVICE=yes

But I get the error:

cygrunsrv: Exactly one of --install, --remove, --start, --stop, --query, or --list is required
Try `cygrunsrv --help' for more information.

Jessica

Posted 2019-11-09T11:44:53.820

Reputation: 11

First you should replace your smart quotes with normal quotes and try again .... – DavidPostill – 2019-11-10T15:38:28.337

No answers