- 12 Jun, 2021 1 commit
-
-
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: Nuno 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: Nuno 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: Nuno Goncalves <nunojpg@gmail.com> * ssh-agent: simplify agent-forwarding checking Signed-off-by: Nuno Goncalves <nunojpg@gmail.com> Co-authored-by: Robby Russell <robby@planetargon.com>
-
- 25 Mar, 2021 1 commit
-
-
Marc Cornellà authored
Fixes #9701
-
- 15 Mar, 2021 1 commit
-
-
Will Boyce authored
* ssh-agent: add `:omz:plugins:ssh-agent ssh_add_args` option * Clean up and document extra setting * Document valid ssh-add arguments Co-authored-by: Marc Cornellà <hello@mcornella.com>
-
- 08 Sep, 2019 1 commit
-
-
Marc Cornellà authored
-
- 07 May, 2019 1 commit
-
-
Jannik authored
-
- 21 Jan, 2019 1 commit
-
-
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.
-
- 19 Jan, 2019 1 commit
-
-
Marc Cornellà authored
-
- 14 Jan, 2019 2 commits
-
-
Andreas authored
With this PR the ssh-agent plugin loads all identities which are not yet loaded in a single call to ssh-add. If a passphrase is shared between loaded identities it only needs to be entered once. Fixes #7506
-
François Scala authored
Use fingerprint of ssh key instead of file name to control if the key is already loaded. Also check for .ssh folder presence (#5128)
-
- 09 Jan, 2019 1 commit
-
-
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
-
- 01 Jul, 2018 1 commit
-
-
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.
-
- 17 Sep, 2016 1 commit
-
-
Marc Cornellà authored
The alternative is using tools that aren't available everywhere. The latest report is that cygwin/msys2 doesn't have pgrep. Fixes #5418.
-
- 05 Sep, 2016 1 commit
-
-
Marc Cornellà authored
Confirmed to work on MacOS, OpenBSD, Solaris and busybox.
-
- 03 Sep, 2016 6 commits
-
-
Marc Cornellà authored
On systems where the shell cannot be changed because of a strict security policy, ssh-agent will use the syntax of whatever the default $SHELL is. For instance, if the default shell is tcsh, ssh-agent will use the c-shell style (setenv). This change forces ssh-agent to use bourne-style syntax since that has to be later interpreted by zsh. Consequently, the environment file will contain `export' statements from now on (instead of `setenv').
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Marc Cornellà authored
-
Maximilian Güntner authored
This change is important when ssh-add is not inside /usr/bin e.g. on NixOS. Signed-off-by: Maximilian Güntner <code@maschinenpsychologe.de>
-
- 20 Aug, 2016 1 commit
-
-
Piotr Gaczkowski authored
-
- 24 May, 2014 1 commit
-
-
ncanceill authored
-
- 13 Mar, 2014 1 commit
-
-
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.
-
- 04 Nov, 2013 1 commit
-
-
nishigori authored
-
- 16 Jul, 2013 1 commit
-
-
Armin Widegreen authored
-
- 16 Mar, 2013 1 commit
-
-
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>
-
- 30 Dec, 2012 1 commit
-
-
Anders Andersson authored
OpenBSD doesn't have -ef flags for ps. Both linux and OpenBSD have -x flags which works just as greate here
-
- 05 Jun, 2011 2 commits
- 01 Mar, 2011 1 commit
-
-
Theodore Robert Campbell Jr authored
-
- 01 Oct, 2010 2 commits
-
-
Robby Russell authored
Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there.
-
Robby Russell authored
-
- 25 Sep, 2010 1 commit
-
-
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.
-