Thanks Tim for that introduction to using ssh-agent as a wrapper for a shell command. I had never seen that technique. Very nice!
Mark Waite On Thu, Feb 8, 2018 at 1:29 PM Timothy Rice <timothy.r...@unimelb.edu.au> wrote: > Oops, sorry I didn't notice Mark's response before replying :D > > ~ Tim > > > > If you clone over ssh (ssh://username@hostname/repopath or user@hostname > : > > repopath), then you can use a passphrase protected private key for that > ssh > > connection. With a passphrase protected private key, only those who know > > the passphrase can use it. If you want to enter the passphrase only once > > per session, you can use "ssh-agent" to remember the passphrase for the > > duration of a session. > > > > $ eval $(ssh-agent) > > $ ssh-add ~/.ssh/id_rsa > > $ git clone username@hostname:repopath > > > > If you use http, you can refer to > > https://help.github.com/articles/caching-your-github-password-in-git/ > for > > hints on "credential helpers". > > > > Mark Waite > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.