12 lines
173 B
Bash
12 lines
173 B
Bash
|
#!/bin/bash
|
||
|
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
||
|
eval `ssh-agent -s`
|
||
|
fi
|
||
|
|
||
|
KEY="$HOME/.ssh/work"
|
||
|
|
||
|
[ -f $KEY ] || return;
|
||
|
|
||
|
ssh-add -l | grep $KEY > /dev/null || ssh-add $KEY
|
||
|
|