Skip to content

Instantly share code, notes, and snippets.

@Joxebus
Last active January 13, 2021 00:21
Show Gist options
  • Select an option

  • Save Joxebus/82a3f4348a7360bb48e823eec45b9f8f to your computer and use it in GitHub Desktop.

Select an option

Save Joxebus/82a3f4348a7360bb48e823eec45b9f8f to your computer and use it in GitHub Desktop.

Revisions

  1. Joxebus revised this gist Jan 13, 2021. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions config
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # ~/.ssh/config
    # Default
    IdentityFile ~/.ssh/id_rsa
    # For any configuration different than defined hosts
    Host *
    IdentityFile ~/.ssh/id_rsa
    User obautista

    # Github
    Host github.com
  2. Joxebus created this gist Sep 25, 2020.
    19 changes: 19 additions & 0 deletions config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # ~/.ssh/config
    # Default
    IdentityFile ~/.ssh/id_rsa

    # Github
    Host github.com
    HostName github.com
    User git
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/personal_rsa

    # Custom URL
    Host customdomain.com
    HostName customdomain.com
    User git
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/work_rsa