[CentOS] sshd_config AllowUsers syntax wrong in documentation

Arun Khan knura9 at gmail.com
Fri Jun 27 06:38:28 UTC 2014


On Thu, Jun 26, 2014 at 4:22 PM, Kai Schaetzl <maillists at conactive.com> wrote:
> It seems the syntax for AllowUsers in sshd_config is not the same that is
> given in man sshd_config and in several documentation on the web.
> (http://www.openssh.com/cgi-bin/man.cgi?query=sshd_config)
>
> e.g.
>
> AllowUsers root
>
> does work.
>
> AllowUsers root username

IIRC, I had encountered similar issue on a Debian box but did not
investigate much.

Instead, I went with the "AllowGroups" option
e.g. AllowGroups  admins

and add users to the group.  Only members of the group can login with ssh.

HTH,
-- Arun Khan



More information about the CentOS mailing list