DEV Community

Discussion on: How to set up SSH keys and connect them to GitHub

Collapse
 
aghost7 profile image
Jonathan Boudreau

I like to have different keys for each service I use. You can do this by specifying the host like so in your ssh config:

Host github.com
    User git
    IdentityFile ~/.ssh/github
Enter fullscreen mode Exit fullscreen mode
Collapse
 
augustocarmona profile image
Augusto Carmona Perez

Thanks! It is a very good idea to have different keys!