Files
dotfiles/ssh/config
Lee Tang c2ff92ed69 update sshconfig
Signed-off-by: Lee Tang <i@d0zingcat.dev>
2023-02-13 11:21:01 +08:00

29 lines
567 B
Plaintext

Host *
IdentityAgent "~/.1password/agent.sock"
ServerAliveInterval 60
TCPKeepAlive yes
Host github.com
Hostname ssh.github.com
Port 443
User git
# set to personal_git by default
IdentityFile ~/.ssh/personal_git.pub
IdentitiesOnly yes
# Personal GitHub
Host personalgit
Hostname ssh.github.com
Port 443
User git
IdentityFile ~/.ssh/personal_git.pub
IdentitiesOnly yes
# Work GitHub
Host workgit
Hostname ssh.github.com
Port 443
User git
IdentityFile ~/.ssh/work_git.pub
IdentitiesOnly yes