Created
April 19, 2013 13:00
-
-
Save aroemen/5420194 to your computer and use it in GitHub Desktop.
Checks if a SSH key is loaded and loads it if not loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load ssh key | |
keyloaded=$(ssh-add -l|grep aroemen -c) | |
if [ $keyloaded == '0' ] | |
then | |
ssh-add {path to ssh key} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment