Omezeni SSH
Michal Weinfurtner
weinfurt na karneval.cz
Středa Červen 9 11:59:33 CEST 2004
Zdenek Zdvorak wrote:
>Zdravim. Je nekde v nastaveni SSH demona nejaky seznam uzivatelu kreri
>se mohou k ssh pripojit. Potreboval bych povolit pripojovani pres ssh
>jen jednomu cloveku a ostatni (hlavne roota zakazat). Diky za rady
>
>
/etc/ssh/sshd_config
PermitRootLogin no
AllowUsers pepa frata zdenek
viz man sshd_config ( svete div se ! )
AllowUsers
This keyword can be followed by a list of user name patterns,
separated by spaces. If specified, login is allowed only for
users 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 na HOST
then USER and HOST are separately checked, restricting
logins to
particular users from particular hosts.
....
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 recognized. By default, login is allowed for all users.
If the pattern takes the form USER na HOST then USER and HOST are
separately checked, restricting logins to particular users from
particular hosts.
Priste nejdrive RTFM !!!!!!!!
;-)
M.
Další informace o konferenci Linux