Created
July 29, 2019 08:08
-
-
Save cvuillemez/d1df4e62d6b98e22bcd5a81a8605c2e5 to your computer and use it in GitHub Desktop.
SSH Load key at login
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_environment | |
ssh-add -l|grep -q 'no identities' && ssh-add | |
. ~/.bashrc |
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_environment |
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
# Replace "1000" by your UID | |
SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment