[Dev] 設定ファイルに注意
パスワードログインを無効にしたはずなのに、、、
sudo grep PasswordAuthentication /etc/ssh/sshd_config
PasswordAuthentication no
有効になっている。
sudo sshd -T | grep passwordauthentication
passwordauthentication yes
PasswordAuthenticationを設定するファイルが他にも存在した。
sudo grep -R "PasswordAuthentication" /etc/ssh/
/etc/ssh/ssh_config・・・今回修正したファイル
/etc/ssh/sshd_config.d/60-cloudimg-settings.conf
/etc/ssh/sshd_config.d/50-cloud-init.conf
Sort: Trending
Loading...
Loading...
