how to increase AllowUsers beyond 256 in sshd_config

Damien Miller djm at mindrot.org
Sun Dec 10 23:00:30 AEDT 2017


On Fri, 8 Dec 2017, LI Michael wrote:

> Hi,
> 
> There are maximum 256 AllowUsers lines in sshd_config , something like
> 
> AllowUsers  user1 at 10.8.73.1

Even if AllowUsers supports more than 256 entries, there is still a
fixed limit on sshd_config line length at 4 or 8 KB.

You can work around both using multiple "Match user" stanzas though.

-d


More information about the openssh-unix-dev mailing list