I checked my Ubuntu 24.04 systems and do not have this file. Disabling PasswordAuthentication in sshd_config worked as expected for me.

The listening port directive is ignored however, seems like...