public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jesse Thompson <jesset@gmail.com>
To: cygwin@cygwin.com
Subject: using ssh-agent in cygwin
Date: Mon, 19 Jul 2021 12:42:35 -0700	[thread overview]
Message-ID: <CA+wh7KiXZFfsnk3gwbceWw3zCW3tg8g42Z8NSanas-KH2emtRQ@mail.gmail.com> (raw)

*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 <http://www.webformix.com/>*
*67 NW Hawthorne Ave, Bend, OR 97703-2915*
*Phone: 541-323-9312*

             reply	other threads:[~2021-07-19 19:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19 19:42 Jesse Thompson [this message]
2021-07-20  3:53 ` Wayne Davison
2021-07-20  7:24 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+wh7KiXZFfsnk3gwbceWw3zCW3tg8g42Z8NSanas-KH2emtRQ@mail.gmail.com \
    --to=jesset@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).