ssh into osx with pub key (i.e. without password)
I am on a remote system (RHEL 7) and I need access to my mac (10.13.6). I cannot get it working using public keys. I can go the other way, from my mac into the remote system, but when I've tried to get from the remote into the Mac, it keeps asking me for my password. This is what I've done, I'd expect it to work, but it doesn't:
From my remote, I've done this:
ssh-copy-id myuser@my.osxaddress.com
In my mac I can see that the remote public key does in fact exist in:
~/.ssh/authorized_keys
And in my config:
/etc/ssh/sshd_config
I've set:
PubkeyAuthentication yes
Alas, still no joy. 😢
Am I missing something? Password authentication works, so clearly I can login from the remote, and the key in the mac's authorized_keys and the remote's id_rsa.pub match, so what gives?
MacBook Pro, macOS High Sierra (10.13.6)