diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-03-14 07:19:49 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-03-14 07:19:49 -0300 |
commit | 3c528082d64fbd01a723d65563e1d3645bc5f8f2 (patch) | |
tree | 6901993eda7fcbceb06a1725aa73d6e6765d4417 | |
parent | 3c96156d9aa22a02b2771402b9b90c871bf675fc (diff) | |
download | utils-ssh-3c528082d64fbd01a723d65563e1d3645bc5f8f2.tar.gz utils-ssh-3c528082d64fbd01a723d65563e1d3645bc5f8f2.tar.bz2 |
Support for $HOME/.ssh/autoload, which can be populated with symlinks
-rwxr-xr-x | ssh-agent-loadkeys | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys index e469ca0..a9d0ac2 100755 --- a/ssh-agent-loadkeys +++ b/ssh-agent-loadkeys @@ -37,4 +37,11 @@ if [ -x '/usr/bin/keychain' ]; then if [ -e "$HOME/.ssh/id_ed25519" ]; then /usr/bin/keychain -q $HOME/.ssh/id_ed25519 fi + + # Autoload remaining keys + if [ -d "$HOME/.ssh/autoload" ]; then + for key in `ls $HOME/.ssh/autoload`; do + /usr/bin/keychain -q $HOME/.ssh/autoload/$key + done + fi fi |