I want to disable password auth - ie keys only - on SSH. I've done this many times on Linux variants, and some searching here suggests it's the same on Mac, ie:
/etc/ssh/sshd_config
Then add/edit:
PasswordAuthentication no
However, this seems to have no effect - ie I can still log in with a password. Is there any different trick to do this on High Sierra?
/etc/ssh/sshd_config
(I set thePermitRootLogin
,PasswordAuthentication
,ChallengeResponseAuthentication
, andUsePAM
options all tono
); SIP has never been disabled on this particular Mac.