Created
July 8, 2022 05:44
-
-
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
This file contains hidden or 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
| # ~/.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