Skip to content

Instantly share code, notes, and snippets.

@gnovaro
Last active January 13, 2022 20:08
Show Gist options
  • Save gnovaro/892aecdd8a2e19da72f3c4c2c8c6883b to your computer and use it in GitHub Desktop.
Save gnovaro/892aecdd8a2e19da72f3c4c2c8c6883b to your computer and use it in GitHub Desktop.
Bash profile for automatic loading ssh keys on login. Add this file in you home directory
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment