aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-03-14 07:19:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-03-14 07:19:49 -0300
commit3c528082d64fbd01a723d65563e1d3645bc5f8f2 (patch)
tree6901993eda7fcbceb06a1725aa73d6e6765d4417
parent3c96156d9aa22a02b2771402b9b90c871bf675fc (diff)
downloadutils-ssh-3c528082d64fbd01a723d65563e1d3645bc5f8f2.tar.gz
utils-ssh-3c528082d64fbd01a723d65563e1d3645bc5f8f2.tar.bz2
Support for $HOME/.ssh/autoload, which can be populated with symlinks
-rwxr-xr-xssh-agent-loadkeys7
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