Restricing SSH Logins

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
With OpenSSH is it possible to restrict a specific non-root user ID from
SSHing to a machine while still allowing other users to "su" to the this
user ID after they log into the server?



Re: Restricing SSH Logins

% man sshd_config
             This keyword can be followed by a list of user name patterns,
             separated by spaces.  Login is disallowed for user names that
             match one of the patterns.  '*' and '?' can be used as wildcards
             in the patterns.  Only user names are valid; a numerical user ID
             is not recognized.  By default, login is allowed for all users.
             If the pattern takes the form USER@HOST then USER and HOST are
             separately checked, restricting logins to particular users from
             particular hosts.

  Richard Silverman

Re: Restricing SSH Logins

Vincent Aniello wrote:

Quoted text here. Click to load it

You can also go it with group membership. In other words only allow people
in the group, say, "sshlogin". It is in the man documents.


Site Timeline