I have enabled remote login (ssh) on my Mac via System Preferences. But it doesn't work with keys and only works with normal user/pass authentication. I want to disable this behaviour and only allow public key (RSA or DSA) authentication.
/etc/sshd_config and uncommented following lines:
PasswordAuthentication no PermitEmptyPasswords no
I then restarted the Remote Login service but it didn't help. It still allows password authentication and my keys are rejected.
Could anyone help me set this up?