Доброго времени суток!
Стоит Slackware 10.1
OpenSSH_4.1p1 и OpennSSL 0.9.7g
Хочу сделать так, чтобы только определенный пользователь смог зайти на машинку, а любой другой не указанный в конфиге и даже знающий пароль отклонялся.В результате все работает, но при попытках любых других пользователей, зайти на компьютер, в логе выдается вот такая муть: Could not get shadow information for NOUSER,я так понимаю, что это сообщение выдается независимо от того, с каким именем пользователь пытается залогиниться.
В sshd.conf прописал
#-----------------------------
#Start sshd config
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
Port 22
Protocol 2
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
#obsoletes QuietMode and FascistLogging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
AllowUsers user1@192.168.1.3 user1@1.2.3.4
RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#UsePAM no
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
# no default banner path
Banner /etc/ssh/banner
# override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
#End of sshd config
#--------------------------------------------
Заранее благодарен.
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум SSH и аутентификация по ключу (2006)
- Форум [криворук криворукович]настройка openssh сервера (2011)
- Форум При попытке коннекта к sftp ошибка Network error: Connection refused (2012)
- Форум Не работает ssh на Debian. (2015)
- Форум SSH fail login (2017)
- Форум Вопрос по SSH (2013)
- Форум Возможно ли подключиться к серверу по SSH имея доступ к файлам на нем? (2019)
- Форум Проблемы при настройке sftp. Connection refused (2013)
- Форум [ssh] UsePAM no => Permission denied (publickey). Почему? (2010)
- Форум фуфел какойто с sshd Памажите плз... (2002)