Титла: sshd ограничение Публикувано от: sunhater в Jun 02, 2003, 17:30 Мога ли да огранича само определени потребители да ползват услугата ssh, и ако мога - как?
Титла: sshd ограничение Публикувано от: KNK в Jun 02, 2003, 17:58 /etc/login.access
P.S. важи не само за sshd обаче, ами и за други услуги например за web-a, FTP ... само за sshd ще трябва да се прави с login scripts. несъм сигурен дали има поддръжка, но можеш да опиташ с
Титла: sshd ограничение Публикувано от: sunhater в Jun 02, 2003, 19:41 Идеята ми е 1 определен потребител да има достъп до ftp, но да няма до sshd, а друг да има и до дете услуги.
Титла: sshd ограничение Публикувано от: KNK в Jun 02, 2003, 20:40
v sshd.config ako iskash da ne se logva ot opredeleno IP ili mrezha
vazhi samo za ssh Титла: sshd ограничение Публикувано от: sunhater в Jun 02, 2003, 21:49 Стана... Но има ли начин да забраня всички логвания, освен посочени от мен. Когато напиша в /etc/ssh/sshd_config:
Титла: sshd ограничение Публикувано от: в Jun 03, 2003, 11:32 Пробвай :
AllowUsers user@hosts DenyUsers *@* Успех :) Титла: sshd ограничение Публикувано от: mrvoland в Jun 03, 2003, 14:14 NAME
sshd_config - OpenSSH SSH daemon configuration file SYNOPSIS /etc/ssh/sshd_config AllowGroups This keyword can be followed by a list of group name patterns, separated by spaces. If specified, login is allowed only for users whose primary group or supplementary group list matches one of the patterns. `*' and `'? can be used as wildcards in the patterns. Only group names are valid; a numerical group ID is not recognized. By default, login is allowed for all groups. 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@HOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts. DenyGroups This keyword can be followed by a list of group name patterns, separated by spaces. Login is disallowed for users whose primary group or supplementary group list matches one of the patterns. `*' and `'? can be used as wildcards in the patterns. Only group names are valid; a numerical group ID is not recognized. By default, login is allowed for all groups. 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@HOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts. понякога командата man е много полезна Титла: sshd ограничение Публикувано от: sunhater в Jun 03, 2003, 17:18
Много ясно! Титла: sshd ограничение Публикувано от: sunhater в Jun 03, 2003, 17:46 Стана ми ясно как ще стане:
Права си нова група (примерно ssh_users). Когато създавам потребител, който искам да има sshd достъп, правя неговата група "ssh_users" вместо "users". Разбира се ще трябва да напиша следното в /etc/ssh/sshd_config
|