Constant errors on `Status Checks` page of v71a

✖	
The SSH server on this machine permits password-based login. A more secure way to log in is using a public key. Add your SSH public key to $HOME/.ssh/authorized_keys, check that you can log in without a password, set the option 'PasswordAuthentication no' in /etc/ssh/sshd_config, and then restart the openssh via 'sudo service ssh restart'.

✖	
There are 3 software packages that can be updated.

libcap2 (1:2.44-1ubuntu0.22.04.2)
libpam-cap (1:2.44-1ubuntu0.22.04.2)
libcap2-bin (1:2.44-1ubuntu0.22.04.2)

I keep getting the above on v71a even though I have apt update && apt upgrade and also modified my /etc/ssh/sshd_config to have only 1 line of PasswordAuthentication no

Anyone else with the same?

Check out these two folders if there is an additional configuration file:

/ etc / ssh / sshd_config.d /

/ etc / ssh / ssh_config.d /

don’t forget to restart SSH!

root@box:/etc/ssh/sshd_config.d# ll
total 16
drwxr-xr-x 2 root root 4096 Feb 25 19:36 ./
drwxr-xr-x 4 root root 4096 Feb 25 19:42 ../
-rw------- 1 root root   27 Feb 25 19:36 50-cloud-init.conf
-rw-r--r-- 1 root root   26 Jan 28 10:10 60-cloudimg-settings.conf
root@box:/etc/ssh/sshd_config.d# more 50-cloud-init.conf 
PasswordAuthentication yes
root@box:/etc/ssh/sshd_config.d# more 60-cloudimg-settings.conf 
PasswordAuthentication no
root@box:/etc/ssh/sshd_config.d# 

Hmm, the nett conclusion is still PasswordAuthentication no right?

UPDATE: I removed them both and the warning went again

thanks!

To see the actual sshd password config, run

sudo sshd -T | grep password

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.