Last active
January 9, 2025 04:06
-
-
Save vraravam/9f17383fd596e6e821199fdd8512ebc6 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 ${HOME}/.ssh/id_ed25519-tw -q -N '' -C "[email protected]" | |
# ssh-keygen -t rsa -a 100 -b 4096 -f ${HOME}/.ssh/id_rsa-YYYY -q -N '' -C "[email protected]" | |
# TODO: This can be removed if the 'pushInsteadOf' setting is removed from the dotfiles repo | |
Host github.com | |
IdentityFile ${HOME}/.ssh/id_rsa-avijayr | |
# Personal account (default config) | |
Host github-personal | |
HostName github.com | |
IdentityFile ${HOME}/.ssh/id_rsa-avijayr | |
# Work account | |
Host github-tw | |
HostName github.com | |
IdentityFile ${HOME}/.ssh/id_ed25519-tw | |
User git | |
Include ${HOME}/.ssh/global_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment