quite new to the forum. Currently I have two machines running a MacBook and an RPi3 running Arch Linux Arm. I have set up hosts files and ssh keys so that I can easily ssh from one machine into the other, for example ssh m147@RPi from my Mac and ssh m147@phi from my RPi3.
Right now I have set up my keys with the default name of id_rsa and id_rsa.pub (which I also use for other things like github). I did ...
cat ~/.ssh/id_rsa.pub | ssh m147@RPi 'cat >> .ssh/authorized_keys'
to copy the public key to the other machine and vice versa. So far so good. However, I have also encrypted both keys on both machines with a passphrase. Going from Mac to RPi is no problem because macOS stores the passphrase in the keychain and so I don't need to enter the passphrase every time I want to ssh into RPi. But the opposite is not the case and I an asked for the passphrase when ssh'ing into Mac from RPi. I like having the added security of the passphrase when using github but I don't really need it for local ssh'ing between my two machines. What I thought was I could set up a second set of keys (I called it local_ssh/local_ssh.pub) and use those just for ssh'ing locally. I did the exact same process as with the id_rsa keys but it doesn't seem to work. Even with the local_ssh.pub key copied to mac authorized_keys it still requires me to enter the mac password when ssh'ing into it. What am I missing. Apologies if this post is a little convoluted.