I am using the latest ubuntu 22.04.03 on a headless system. SSH continues to add these lines to the top of the config file each and every reboot, therefore locking me out.
ChallengeResponseAuthentication no
UsePAM yes
PubkeyAuthentication no
PermitRootLogin no
PasswordAuthentication no
PidFile /run/sshd.pid
I have purged, edited, reinsalled, disabled, and I cannot for the life of me get this to stop.
Please help me. Pretty please?