aboutsummaryrefslogtreecommitdiff
path: root/ssh-agent-loadkeys
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent-loadkeys')
-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