Skip to content

Instantly share code, notes, and snippets.

@rponte
Last active March 5, 2021 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rponte/08f840f6cf92235dad972cfdfa09c1c7 to your computer and use it in GitHub Desktop.
Save rponte/08f840f6cf92235dad972cfdfa09c1c7 to your computer and use it in GitHub Desktop.
Configuring SSH-Agent with your keys on MacOSX
# 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
@rponte
Copy link
Author

rponte commented Jan 6, 2020

@rponte
Copy link
Author

rponte commented Mar 5, 2021

@rponte
Copy link
Author

rponte commented Mar 5, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment