As noted in some comments, ssh_config
is for (default) client configuration, but server configuration is done in sshd_config
, typically in /etc/ssh
on most *NIX systems, but is /etc/sshd_config
in the case of MacOS X and perhaps other systems.
As for disabling password authentication, look at the option PasswordAuthentication
and set it to no
; the default is typically yes
. Also look at other options including PermitRootLogin
which, IMO, should be set to no
(or at least without-password
), and UsePAM
which can affect password-based authentication as well.
sshd_config.conf
ssh_config
is for clients. What does the server use for its configuration?man sshd_config
ssh_config
is for the clients.