Skip to content

Instantly share code, notes, and snippets.

@vraravam
Last active January 2, 2026 11:24
Show Gist options
  • Select an option

  • Save vraravam/4c5bcca2016d5e19ae8a859e6cc2c59a to your computer and use it in GitHub Desktop.

Select an option

Save vraravam/4c5bcca2016d5e19ae8a859e6cc2c59a to your computer and use it in GitHub Desktop.

Revisions

  1. vraravam revised this gist Jan 2, 2026. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ssh config
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,4 @@ Host github-work
    IdentityFile "${SSH_CONFIGS_DIR}/id_ed25519-work"
    User git

    Include ${SSH_CONFIGS_DIR}/global_config
    Include "${SSH_CONFIGS_DIR}/global_config"
  2. vraravam revised this gist Jan 2, 2026. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions ssh config
    Original file line number Diff line number Diff line change
    @@ -1,26 +1,26 @@
    # file location: ${HOME}/.ssh/config

    # Note: To generate new ssh key (replace placeholders with your values):
    # ssh-keygen -t ed25519 -a 100 -b 4096 -f ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "XXXX@tw.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-personal -q -N '' -C "YYYYY@gmail.com"
    # ssh-keygen -t ed25519 -a 100 -b 4096 -f ${SSH_CONFIGS_DIR}/id_ed25519-work -q -N '' -C "XXXX@work.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${SSH_CONFIGS_DIR}/id_rsa-personal -q -N '' -C "YYYYY@gmail.com"

    # To add the generated keys to the ssh agent
    # ssh-add "${SSH_CONFIGS_DIR}/id_ed25519-work"
    # ssh-add "${SSH_CONFIGS_DIR}/id_rsa-personal"

    # TODO: This can be removed if the 'pushInsteadOf' setting is removed from the dotfiles repo
    Host github.com
    IdentityFile ${HOME}/.ssh/YYYYYY
    IdentityFile "${SSH_CONFIGS_DIR}/id_rsa-personal"

    # Personal account (default config)
    Host github-personal
    HostName github.com
    IdentityFile ${HOME}/.ssh/YYYYYY
    IdentityFile "${SSH_CONFIGS_DIR}/id_rsa-personal"

    # Work account
    Host github-work
    HostName github.com
    IdentityFile ${HOME}/.ssh/XXXXXXXX
    IdentityFile "${SSH_CONFIGS_DIR}/id_ed25519-work"
    User git

    Include ${HOME}/.ssh/global_config
    Include ${SSH_CONFIGS_DIR}/global_config
  3. vraravam revised this gist Jan 2, 2026. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ssh config
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    # Note: To generate new ssh key (replace placeholders with your values):
    # ssh-keygen -t ed25519 -a 100 -b 4096 -f ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "XXXX@tw.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-YYYY -q -N '' -C "YYYYY@gmail.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-personal -q -N '' -C "YYYYY@gmail.com"

    # To add the generated keys to the ssh agent
    # ssh-add "${SSH_CONFIGS_DIR}/id_ed25519-work"
  4. vraravam revised this gist Jan 2, 2026. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions ssh config
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,10 @@
    # ssh-keygen -t ed25519 -a 100 -b 4096 -f ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "XXXX@tw.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-YYYY -q -N '' -C "YYYYY@gmail.com"

    # To add the generated keys to the ssh agent
    # ssh-add "${SSH_CONFIGS_DIR}/id_ed25519-work"
    # ssh-add "${SSH_CONFIGS_DIR}/id_rsa-personal"

    # TODO: This can be removed if the 'pushInsteadOf' setting is removed from the dotfiles repo
    Host github.com
    IdentityFile ${HOME}/.ssh/YYYYYY
  5. vraravam created this gist May 30, 2025.
    22 changes: 22 additions & 0 deletions ssh config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # file location: ${HOME}/.ssh/config

    # Note: To generate new ssh key (replace placeholders with your values):
    # ssh-keygen -t ed25519 -a 100 -b 4096 -f ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "XXXX@tw.com"
    # ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-YYYY -q -N '' -C "YYYYY@gmail.com"

    # TODO: This can be removed if the 'pushInsteadOf' setting is removed from the dotfiles repo
    Host github.com
    IdentityFile ${HOME}/.ssh/YYYYYY

    # Personal account (default config)
    Host github-personal
    HostName github.com
    IdentityFile ${HOME}/.ssh/YYYYYY

    # Work account
    Host github-work
    HostName github.com
    IdentityFile ${HOME}/.ssh/XXXXXXXX
    User git

    Include ${HOME}/.ssh/global_config