From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) by sourceware.org (Postfix) with ESMTPS id B4210394742E for ; Wed, 8 Apr 2020 20:58:56 +0000 (GMT) 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@acm.org Received: from resomta-ch2-14v.sys.comcast.net ([69.252.207.110]) by resqmta-ch2-03v.sys.comcast.net with ESMTP id MHjhjZbCH8K6OMHmhjvhGM; Wed, 08 Apr 2020 20:58:55 +0000 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== Received: from [IPv6:2620:118:8000:1002:9cb5:470b:e595:5a5d] ([IPv6:2620:118:8000:700::250]) by resomta-ch2-14v.sys.comcast.net with ESMTPA id MHmVjRR9pQkuIMHmbjp8FC; Wed, 08 Apr 2020 20:58:53 +0000 X-Xfinity-VMeta: sc=0.00;st=legit Subject: Re: Using ARM GNU GCC with Cygwin To: cygwin@cygwin.com References: <51717d4a9c861fd90b5f9a58b84b308a@mail.kylheku.com> <38a47b9b-f43a-3727-2205-f02f0dbd48d0@gmail.com> <867844f7772cbc73326eeb57b85a0ab8@mail.kylheku.com> Reply-To: cygwin@cygwin.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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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@cygwin.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: , X-List-Received-Date: Wed, 08 Apr 2020 20:58:58 -0000 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@acm.org QOTD: "Overweight is when you step on your dog's tail and it dies."