Skip to content

Instantly share code, notes, and snippets.

@cvuillemez
Created July 29, 2019 08:08
Show Gist options
  • Save cvuillemez/d1df4e62d6b98e22bcd5a81a8605c2e5 to your computer and use it in GitHub Desktop.
Save cvuillemez/d1df4e62d6b98e22bcd5a81a8605c2e5 to your computer and use it in GitHub Desktop.
SSH Load key at login
. ~/.ssh_environment
ssh-add -l|grep -q 'no identities' && ssh-add
. ~/.bashrc
. ~/.ssh_environment
# 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