0

I'm trying to disable password authentication at my SSH server. I found the client config file at ssh_config, but I can't find the server's configuration file. man ssh_config(5) does not appear to tell us what the server uses.

Where is the server's configuration file?

11
  • The server is sshd
    – albal
    Aug 24, 2015 at 2:12
  • I'm pretty sure you need sshd_config.conf Aug 24, 2015 at 2:28
  • @Zacharee1 - the man page says ssh_config is for clients. What does the server use for its configuration?
    – jww
    Aug 24, 2015 at 2:30
  • You have to do man sshd_config Aug 24, 2015 at 2:31
  • @Zacharee1 - I did. That's how I know ssh_config is for the clients.
    – jww
    Aug 24, 2015 at 2:49

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .