Created
August 24, 2020 16:45
-
-
Save rh917/3478fa939c1c28c9206e94ffffef5802 to your computer and use it in GitHub Desktop.
This file contains 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
ssh-add &>/dev/null || eval `ssh-agent` &>/dev/null # start ssh-agent if not present | |
[ $? -eq 0 ] && { # ssh-agent has started | |
ssh-add ~/.ssh/id_rsa &>/dev/null # Default identity | |
ssh-add ~/.ssh/<user-key> &>/dev/null # user-key | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment