AllowGroupsの問題でsshログインできない
sshログインできないので /var/log/secure のログを見てみました。
以下のメッセージがでていました。
1 | Apr 28 14:11:14 server01 sshd[31264]: User shoyan from example.jp not allowed because none of user's groups are listed in AllowGroups |
none of user's groups are listed in AllowGroups と書いてあるので、groupの問題らしい。
/etc/ssh/sshd_configをみると、AllowGroups にいなかったのでユーザーのグループを追加しました。
sshd_configを変更したら、設定を反映させるためにreloadします。
1 | # service sshd reload |
AllowGroupsにユーザーのグループを追加することによってログインできるようになりました。