X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B4210394742E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=daveroth AT acm DOT org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20180828_2048; t=1586379535; bh=n03/uuXYcw5Aao1/W2FQF5smJg2LQrmeZIgQ5MhXDs4=; h=Received:Received:Subject:To:Reply-To:From:Message-ID:Date: MIME-Version:Content-Type; b=Pqz2pWvae8ifQverm0zEcNojOlGvNYbB527e0kWLDjF73n7PgT/u3SrfwBA74n2Ba nCLs/NJJf7+4UHbyWvAkZMgfq8FujQ7uBbIW8lgn4+bgsXWu1aJ9Ugwg+/0IsPEOc9 /MIjmpTa31fKH4VtsBDMA5xdqHsjW6oDDheNMLFkMQ7x9EFakMeFltJNVu8sHpjjMm k71DFyEDSgVkYvQYhfHz2bTf6tovTbzU76ICC4KFoJ4gOILMUo4Vx+UK12JdA3DLdf wseE+Elo2Wiblh3tX7pr+5u5wOthlhDJdfWifw2K4udCd/cktDLWTZw0lVm3S/shdw yZ4Wck5L4swAg== X-Xfinity-VMeta: sc=0.00;st=legit Subject: Re: Using ARM GNU GCC with Cygwin To: cygwin AT cygwin DOT com References: <51717d4a9c861fd90b5f9a58b84b308a AT mail DOT kylheku DOT com> <38a47b9b-f43a-3727-2205-f02f0dbd48d0 AT gmail DOT com> <867844f7772cbc73326eeb57b85a0ab8 AT mail DOT kylheku DOT com> From: David Rothenberger Message-ID: <5b9feca8-01c8-d2a2-f020-5350ebc51783@acm.org> Date: Wed, 8 Apr 2020 13:58:41 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <867844f7772cbc73326eeb57b85a0ab8@mail.kylheku.com> Content-Language: en-US X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 038KxMYr031008 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 ---- daveroth AT acm DOT 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