add ssh wrapper to auto-add private key on first invocation

This commit is contained in:
Josh Holtrop 2015-05-27 08:21:11 -04:00
parent fd4eac1796
commit 382746ee7e

7
ssh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [[ "$(ssh-add -l | grep -i joshs_key)" == "" ]]; then
ssh-add $HOME/.ssh/joshs_key </dev/null
fi
exec /usr/bin/ssh "$@"