Last active
January 2, 2026 11:24
-
-
Save vraravam/4c5bcca2016d5e19ae8a859e6cc2c59a to your computer and use it in GitHub Desktop.
Template for configuring ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 ${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 "${SSH_CONFIGS_DIR}/id_rsa-personal" | |
| # Personal account (default config) | |
| Host github-personal | |
| HostName github.com | |
| IdentityFile "${SSH_CONFIGS_DIR}/id_rsa-personal" | |
| # Work account | |
| Host github-work | |
| HostName github.com | |
| IdentityFile "${SSH_CONFIGS_DIR}/id_ed25519-work" | |
| User git | |
| Include "${SSH_CONFIGS_DIR}/global_config" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment