内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
50 日記
»
2023
»
12
»
2023.12.26 PasswordAuthenticationが効かない。。。
トレース:
50_dialy:2023:12:26
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 2023.12.26 PasswordAuthenticationが効かない。。。 ====== Ubuntu 22 で、パスワードログインを無効化しようと思って、下記を修正しました。 これで、sshdをリスタートしたが、何故かパスワードログインできてしまう。。。 <code|/etc/ssh/sshd_config> #PasswordAuthentication yes ↓ PasswordAuthentication no </code> ===== 対応 ===== 原因は、sshd_configでIncludeされているからでした。 正しいファイルを修正してから、sshdリスタートで解決しました。 <code|/etc/ssh/sshd_config> Include /etc/ssh/sshd_config.d/*.conf </code> <color #ed1c24>このファイルが存在していて、PasswordAuthentication が yes になってるた。</color> <code|/etc/ssh/sshd_config.d/50-cloud-init.conf > PasswordAuthentication yes </code> {{tag>日記 sshd ubuntu}}
50_dialy/2023/12/26.txt
· 最終更新: 2023/12/26 09:28 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ