пытаюсь разрешить только юзеру uzer1, но пускает и другого юзера(( вот sshd_config:
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
UsePrivilegeSeparation yes# Logging
SyslogFacility AUTH
LogLevel INFO# Authentication:
LoginGraceTime 30
PermitRootLogin no
StrictModes yes
AllowUsers uzer1@*IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication yesPrintMotd no
PrintLastLog yes
TCPKeepAlive yesAcceptEnv LANG LC_*
UsePAM yes
X11Forwarding no
AllowTcpForwarding no
>[оверквотинг удален]
> PermitEmptyPasswords no
> ChallengeResponseAuthentication no
> PasswordAuthentication yes
> PrintMotd no
> PrintLastLog yes
> TCPKeepAlive yes
> AcceptEnv LANG LC_*
> UsePAM yes
> X11Forwarding no
> AllowTcpForwarding no# man sshd_config
> # man sshd_configна предмет какой опции?
>> # man sshd_config
> на предмет какой опции?из мана:
the allow/deny directives are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
By default, login is allowed for all users.т.е. получается надо сперва указать
# запрещаем всех юзеров
DenyUsers loginзатем
# разрешаем конкретному юзеру
AllowUsers uzer1правильно?
> т.е. получается надо сперва указать
> # запрещаем всех юзеров
> DenyUsers login
> затем
> # разрешаем конкретному юзеру
> AllowUsers uzer1
> правильно?Зашуршало!!! спасибки! RTFM-сила))
>> т.е. получается надо сперва указать
>> # запрещаем всех юзеров
>> DenyUsers login
>> затем
>> # разрешаем конкретному юзеру
>> AllowUsers uzer1
>> правильно?
> Зашуршало!!! спасибки! RTFM-сила))Такие вещи обязательно в виртуалке тестите :)