News for hackers. Stuff that matters.
Re:Abusing Ubuntu 24.04 features for root privilege escalation by lathiat on Thursday November 14, 2024 @09:00PM (#42143299)
You can still configure it to be key only, you just need to put your own override as a file in /etc/ssh/sshd_config.d/ rather than /etc/ssh/sshd_config. The files are read ins order, so your filename needs to sort after the 50-cloud-init.conf file.

This would work: echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/60-password-auth.conf

Re:Abusing Ubuntu 24.04 features for root privilege escalation by speleding on Friday November 15, 2024 @11:58AM (#42148662)
With sshd configuration the first option is the one that sticks, so you need to make sure it sorts BEFORE the 50-cloud-init.conf file.