Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
stonesbg
1 year agoNew Contributor
1Password SSH Agent how to set specific ssh key
I have a few different ssh keys that are used for git and would like to have it set so that if going through one github organization i force one key if going to a personal account it uses a different...
Michael_Mercuri
1 year agoDedicated Contributor
You can specify which key to use for which host in ~/.ssh/config using IdentityFile option, where the identity file is the public key to use and the private key is stored in 1Password. You may also need to specify IdentitiesOnly yes.
Example for mailto:user99@example.com:
Host example.com
User user99
IdentityFile ~/.ssh/identity.pub
IdentitiesOnly yes
More here:
https://linux.die.net/man/5/ssh_config