I've made several changes to my SSH configuration in the sshd_config file to enhance security. I've disabled root login and password authentication, then restarted the SSH service and even rebooted my server. However, I'm still being prompted to enter a password when trying to log in as root via SSH. What could I be missing?
1 Answer
If you're using Ubuntu, there might be other configuration files in a conf.d directory that could override your settings. I suggest placing your custom config in that conf.d directory so it takes precedence over the default. This way, you can also allow updates to the default config when SSH packages are upgraded.

Thanks, this actually helped me solve the issue. There was a file in the config.d directory overriding the sshd_config file.