1

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?

3
  • 3
    I'm not aware of anything in the default Ubuntu configuration that would cause this behavior - does the server perhaps have a cron job that is modifying the file? Commented Aug 10, 2023 at 14:56
  • check your system's syslog messages Commented Aug 10, 2023 at 16:26
  • 5
    Please edit your question and add: i) your Ubuntu version and ii) what config file you are referring to.
    – terdon
    Commented Aug 10, 2023 at 16:59

1 Answer 1

3

So after months of craziness, I figured it out. The suggestion above to look at my cron jobs led me to my Jumpcloud managment agent. As this was a new Nix build only months ago, I forgot to enable the SSH settings in the agent. My sanity is saved. Thanks for the suggestions!!

You must log in to answer this question.

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