• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1359
  • Last Modified:

sshd.conf User Restriction

Hi I'm using a SSH Daemon.
I want to configure (e.g. in the systemwide config file) my sshd
to allow user access only to certain named users - not groups not domains.
How can I do this ?
Didn' find any actual help, hints or examples of a suitable conf file on the web - maybe some expert can help ?.
I apreciate...mfuerlinger.
1 Solution
I think the option you're looking for is "AllowUsers".  It's at least in SSH v1.2.26.

              This  keyword can be followed by any number of user
              name patterns or user@host patterns,  separated  by
              spaces. Host name may be either the dns name or the
              ip address. If specified, login is allowed only  as
              users  whose  name matches one of the patterns. ´*´
              and ´?´ can be used as wildcards in  the  patterns.
              By default, logins as all users are allowed.

              Note  that the all other login authentication steps
              must still be  sucessfully  completed.   AllowUsers
              and DenyUsers are additional restrictions.

-- Brian
mfuerlingerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now