c'est
mal d'editer etc/{group,passwd,shadow} a la main, ca ne se fait pas. Il faut utiliser usermod/groupmod. toujours. Ou un outil graphique.
Sinon pour repondre a la question, vous seriez gentils de lire la page de manuel de sshd/sshd_config.
DenyUsers
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 recog-
nized. 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.
Ca me parait correspondre a la description demandee.