On 4/8/2020 1:50 PM, Kaz Kylheku via Cygwin wrote:
On 2020-04-04 11:58, Åke Rehnman via Cygwin wrote:
I have a major use case for Cygwin for providing remote access
to Windows. Using a non-Cygwin utility called "RunAsService.EXE",
I turned a Cygwin Bash script into a Windows service. This Bash
script loops around and makes a SSH connection to a host
in a domain that I control, setting up a tunnel for port 3389
(RDP). From that domain, I can then remote desktop into the
Windows system. Basically I can deploy this solution on any
Windows machine on any network where outbound SSH is allowed, and
have remote access to it.

You might want to look at the "autossh" Cygwin package. It handles exactly this use case and can be registered as a Windows service without any non-Cygwin utilities. Just look at

  /usr/share/doc/autossh/README.Cygwin

after you install the package for details about the service.

I've been using this for years for the purpose you've described and it's been working great.

--
David Rothenberger  ----  daver...@acm.org

QOTD:
        "Overweight is when you step on your dog's tail and it dies."
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to