Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to add ssh keys to the ssh-agent. #192

Merged
merged 1 commit into from
Feb 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ Please use a strong passphrase for your keys.

Third, Add your keys to GitHub by going into account settings.

Lastly, Add your keys to the `ssh-agent`:

$ eval "$(ssh-agent -s)"
$ ssh-add -K ~/.ssh/id_rsa

Optionally, you can configure your ssh keys in ~/.ssh/config:

```
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
```

The configuration above will add your ssh key to the ssh-agent and store your passphrase in the keychain, so that you are not asked for it each time you use the key.

- - -

### DS_Store
Expand Down