From: Silvio Rhatto Date: Wed, 14 Mar 2018 10:19:49 +0000 (-0300) Subject: Support for $HOME/.ssh/autoload, which can be populated with symlinks X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3c528082d64fbd01a723d65563e1d3645bc5f8f2;p=utils-ssh.git Support for $HOME/.ssh/autoload, which can be populated with symlinks --- 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