Skip to content

Commit

Permalink
Explain how to add ssh keys to the ssh-agent. (#192)
Browse files Browse the repository at this point in the history
* How to add ssh-keys to ssh-agent
* Example ssh config record
* How to add ssh-key to keychain
  • Loading branch information
Anton Vietrov authored and sb2nov committed Feb 3, 2018
1 parent 1c35aff commit c617a92
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit c617a92

Please sign in to comment.