Date Published: February 5, 2025
Using multiple SSH keys
You have three options when it comes to using or adding an additional key.
- First option is to update your SSH local config file to include any additional keys with an updated
IdentifyFile
of /path/to/private.key
- Second, is to specify the identify file to use for that one connection.
Example: ssh -i /path/to/private.key
- Third, you can hold this new key open with an agent by adding an identify to ssh-agent. This way when SSH attempts to connect, it will try all keys loading into your agent.
Example: ssh-add /path/to/private.key
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.