12 lines
168 B
Bash
12 lines
168 B
Bash
|
#!/bin/bash
|
||
|
[ -f "$HOME/.ssh/*.key" ] || return;
|
||
|
|
||
|
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
||
|
eval `ssh-agent -s`
|
||
|
fi
|
||
|
|
||
|
for key in $HOME/.ssh/*.key; do
|
||
|
ssh-add $key
|
||
|
done;
|
||
|
|