I'm working on MacOS and want an SSH/Git login with a seccond ssh-key.
I have two key pairs in ~/.ssh/
id_rsa
id_rsa.pub
id_rsa.gitlab
id_rsa.gitlab.pub
id_rsa and id_rsa.pub are the older key. This key is working fine. But where the second key is needed, i can't login. It trys the first key and fails.
Running this command ssh-add /Users/kevin/.ssh/id_rsa.gitlab
helps. But after a reboot, it dosen't work anymore and i must run the command again.
Is there a better solution as run this command after each reboot?