1. 26 Aug, 2021 1 commit
  2. 14 Jun, 2021 1 commit
  3. 12 Jun, 2021 1 commit
    • Nuno Goncalves's avatar
      ssh-agent: improvements (#6309) · a2062714
      Nuno Goncalves authored
      
      
      * ssh-agent: lock this script with a mkdir style mutex
      
      This script is a kind of singleton pattern and is not reentrant.
      If several shells are oppened in a fast sequence, then several
      independent ssh-agents would be created, which is not acceptable.
      A mutex is required.
      Signed-off-by: default avatarNuno Goncalves <nunojpg@gmail.com>
      
      * ssh-agent: only start agent if .ssh dir exists
      
      To use the same profile system-wide, it might happen
      that the .ssh directory does not exist
      (typically $HOME/.ssh/). This would trigger a error.
      
      Creating the directory would be a option, but it
      usually will not make sense to do so because it means
      the user doesn't have ssh keys or config.
      Signed-off-by: default avatarNuno Goncalves <nunojpg@gmail.com>
      
      * ssh-agent: adds lazy option to disable key loading on start
      
      Option is documented on updated README.md
      Signed-off-by: default avatarNuno Goncalves <nunojpg@gmail.com>
      
      * ssh-agent: simplify agent-forwarding checking
      Signed-off-by: default avatarNuno Goncalves <nunojpg@gmail.com>
      Co-authored-by: default avatarRobby Russell <robby@planetargon.com>
      a2062714
  4. 25 Mar, 2021 1 commit
  5. 15 Mar, 2021 1 commit
  6. 08 Sep, 2019 1 commit
  7. 07 May, 2019 1 commit
  8. 21 Jan, 2019 1 commit
    • Marc Cornellà's avatar
      ssh-agent: check for loaded id filenames first (#7521) · c4948696
      Marc Cornellà authored
      This change makes the plugin check if an identity is loaded by looking
      first at the key filename reported by `ssh-add -l`. This fixes the use
      case where ssh-keygen is not able to output the fingerprint of a key,
      such as the one reported on #7516.
      
      Now, for an identity to be passed onto ssh-add, it has to fail the
      match for a loaded identity, both filename and signature.
      c4948696
  9. 19 Jan, 2019 1 commit
  10. 14 Jan, 2019 2 commits
  11. 09 Jan, 2019 1 commit
    • Marc Cornellà's avatar
      ssh-agent: autoload identities not already loaded (#7174) · fabee559
      Marc Cornellà authored
      With this PR the ssh-agent plugin checks the `ssh-add -l` output for the
      identities added, and adds all those specified by the user that haven't been
      added yet.
      
      We also decouple the logic of starting ssh-agent from the logic of adding
      identities, meaning that even if ssh-agent has been started by some other means
      (like launchd) we can still ssh-add the user's identities.
      
      Fixes #3019
      Fixes #6979
      fabee559
  12. 01 Jul, 2018 1 commit
    • Michael Stucki's avatar
      Use existing ssh-agent when invoking a sudo shell (#3891) · 30227017
      Michael Stucki authored
      When invoking a shell as root using ```sudo -s```, the ssh-agent plugin
      starts a new agent although it already exists.
      
      The problem boils down to a check if ssh-agent is running using
      ```ps x```. If that is extended to ```ps ax``` for root, then the
      existing ssh-agent will still work.
      30227017
  13. 17 Sep, 2016 1 commit
  14. 05 Sep, 2016 1 commit
  15. 03 Sep, 2016 6 commits
  16. 20 Aug, 2016 1 commit
  17. 24 May, 2014 1 commit
  18. 13 Mar, 2014 1 commit
    • Christian Höltje's avatar
      ssh-agent: prevent environment file from flapping · cfe468f6
      Christian Höltje authored
      On an OS X laptop, the variable `$HOST` changes a lot depending
      on what wifi network you're connected to.  This causes a lot
      of `~/.ssh/environment-$HOST` files to be created and
      causes multiple ssh-agents to created.
      
      Instead, use `scutil --get ComputerName` to get something
      more stable.
      cfe468f6
  19. 04 Nov, 2013 1 commit
  20. 16 Jul, 2013 1 commit
  21. 16 Mar, 2013 1 commit
    • Marcel Wolf's avatar
      add ssh-agent option to set default lifetime of identities · 2a1c9ff3
      Marcel Wolf authored
      By default, ssh-agent stores identities forever. It has an option to
      set a maximum lifetime for identites (useful to expire passphrase protected
      keys). Allow this option to be set using:
      
      zstyle :omz:plugins:ssh-agent lifetime <time>
      2a1c9ff3
  22. 30 Dec, 2012 1 commit
  23. 05 Jun, 2011 2 commits
  24. 01 Mar, 2011 1 commit
  25. 01 Oct, 2010 2 commits
  26. 25 Sep, 2010 1 commit
    • gwjo's avatar
      ssh-agent module · 62cea310
      gwjo authored
      Implement a simple module that automatically launches the ssh-agent when you login and
      adds your default key.
      
      Useful for anyone that does remote work and thus doesn't have access to a keychain tool.
      62cea310