sshd_configの "PermitRootLogin yes"オプションにもかかわらず、ルートSSHは使用できません。

sshd_configの

PermitRootLoginsshd_config オプションが「yes」に設定されていても ssh に接続できません。

ssh localhost
root@localhost's password: 
Permission denied, please try again.

私のコンテンツ全体は次のとおりですsshd_config

PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem   sftp    /usr/lib/openssh/sftp-server
PermitRootLogin yes
AllowUsers otheruser

rootでSSH接続をブロックするものとは何ですか?これを解決する方法は?

ベストアンサー1

ユーザーを許可

指定した場合、これらのパターンのいずれかに一致するユーザー名のみがログインを許可されます。

リストにルートを追加します。

AllowUsers root otheruser

おすすめ記事