Skip to content

Instantly share code, notes, and snippets.

@StrixROX
Created July 8, 2022 05:44
Show Gist options
  • Select an option

  • Save StrixROX/b4d71d605005349fee05d0c5b3aef6ce to your computer and use it in GitHub Desktop.

Select an option

Save StrixROX/b4d71d605005349fee05d0c5b3aef6ce to your computer and use it in GitHub Desktop.
Bash script to import all stored SSH keys for using GitHub with SSH-keys
# ~/.bash_aliases
# ...
# loads all saved ssh keys
# to know to how generate ssh keys to use with GitHub, refer: https://docs.github.com/en/authentication/connecting-to-github-with-ssh
# Usage:
# authgit
function authgit {
eval "$(ssh-agent -s)"
ssh-add
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment