Last active
March 5, 2021 19:06
-
-
Save rponte/08f840f6cf92235dad972cfdfa09c1c7 to your computer and use it in GitHub Desktop.
Configuring SSH-Agent with your keys on MacOSX
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
# Add to your ~/.ssh/config the option for every host | |
touch ~/.ssh/config | |
# ...and add this into the file: | |
Host * | |
AddKeysToAgent yes | |
UseKeychain yes | |
# Check if ssh-agent is running | |
ssh-agent | |
# Add your key to the agent. | |
ssh-add id_rsa | |
ssh-add key2... | |
# Check if key is added by listing all keys. | |
ssh-add -L | |
# If nothing works, you can clear up all keys and add them again | |
ssh-add -D | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more infos: