====== 2023.12.26 PasswordAuthenticationが効かない。。。 ====== Ubuntu 22 で、パスワードログインを無効化しようと思って、下記を修正しました。 これで、sshdをリスタートしたが、何故かパスワードログインできてしまう。。。 #PasswordAuthentication yes ↓ PasswordAuthentication no ===== 対応 ===== 原因は、sshd_configでIncludeされているからでした。 正しいファイルを修正してから、sshdリスタートで解決しました。 Include /etc/ssh/sshd_config.d/*.conf このファイルが存在していて、PasswordAuthentication が yes になってるた。 PasswordAuthentication yes {{tag>日記 sshd ubuntu}}