From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id EF40C385703E for ; Mon, 19 Jul 2021 19:42:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF40C385703E Received: by mail-lf1-x133.google.com with SMTP id 8so32088130lfp.9 for ; Mon, 19 Jul 2021 12:42:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Jqwe58P0jEIdWGAIe0FiUiGUqm/YZYF0ZcD6REzLqk8=; b=aW57yYWlUedalNpyr7uTEsj3Ba/7D2GUfJBMWmlI7wzstdQStMRDzHWvTCW92U6Xea tbyb+UZs1+4tMz/Gi/9IqWDR5sIlIVnrRnmKM/jTolbtquZlUuRpt8jWzn4Toz8oTSid 5gsCG5IfyWgNNLGDAdLlp60edpsDsPM2jk3N5rVXfCgxMK0t6vaGFhjxiYPwqRCOaJJu XB6gXwcqElrSlhmZLSZJFvPNS2HJkPS/FJKcTBt+KaEW7rQawj9TVWFg+Cw25+lm7NRq uNSxYPbXOVp9fJWgHy61qOBbYPfTpkWNGZs7xmRhCNjazYfOow28+tXREY53+IS9R7cE I7Uw== X-Gm-Message-State: AOAM532yvlyl7ZS1ooDbeKNMpHFoN4XDAUVuTyEoxn+CBvsOqljqYOQX 0/BiS40ZehjNGjY4NNEQksX5sLW/8kcmb4YNtLeHWAaNvnJRxA== X-Google-Smtp-Source: ABdhPJy1YMqRO7rOk1IxFHJgicKItrXZXq4hhSBD0Mf/WZx7TBNXKgR8NDHPIjueTAsD2JZ1M1P5k6rvRRUhvvdlVt0= X-Received: by 2002:ac2:52a8:: with SMTP id r8mr18820310lfm.475.1626723766526; Mon, 19 Jul 2021 12:42:46 -0700 (PDT) MIME-Version: 1.0 From: Jesse Thompson Date: Mon, 19 Jul 2021 12:42:35 -0700 Message-ID: Subject: using ssh-agent in cygwin To: cygwin@cygwin.com X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 19 Jul 2021 19:42:49 -0000 *TL:DR;* I'm looking for options to reliably start and manage an ssh-agent daemon in Cygwin. Using ssh-agent in cygwin seems very compelling. OpenSSH client config AddKeysToAgent option and ssh-agent -t option allow me to keep keys unlocked for limited times the way that I'd like, and unlock upon use instead of upon login, and avoid having to manually ssh-add. But I'm left with the issue of "how can all of my shell windows use the same daemon" and "how can I get the daemon to start automatically without spawning an army of unmanaged zombies"? I have to assume that ssh-agent is very popular to use, and that copy-pasting 6-12 lines of fragile, custom bash code into one's profile doesn't have to be the primary way to get into this club. So, how do you guys manage ssh-agent? Is it really a niche solution, and there's some better way to get similar SSO-like benefits I should know about instead? Please advise, thanks folks! -- *Jesse Thompson | Systems and Network Administrator* *Webformix Wireless Internet * *67 NW Hawthorne Ave, Bend, OR 97703-2915* *Phone: 541-323-9312*