Skip to content

Instantly share code, notes, and snippets.

View jmcaldera's full-sized avatar

José Manuel Caldera jmcaldera

View GitHub Profile
@jmcaldera
jmcaldera / ssh_multikeys.md
Last active May 25, 2024 19:58
Multiple SSH Keys macOS

Multiple SSH Keys on same client

Check if you have existing keys by opening the terminal and entering: ssh-add -l OR ls -al ~/.ssh and check for any file called (usually) id_rsa or similar

Identify the host you're using your current key for. You probably added this key to, for example your github or gitlab account. We will use this later on.

If you don't have a config file on ~/.ssh folder, you will need to create one. We'll get back to this later.

Computer Information:
Manufacturer: Apple
Model: MacBookPro12,1
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
CPU Family: 0x6