From: Dmitry Lebkov <dima@sakhalin.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] OpenSSH ограничение по IP адресу.
Date: Wed, 16 Nov 2005 20:43:55 +1000
Message-ID: <437B0D6B.3050706@sakhalin.ru> (raw)
In-Reply-To: <437B081C.3040107@21th.com>
Grigory Soloviov wrote:
> Привет!
>
> В свое время давно видел как был настроен SSH сервер с проверкой IP
> адреса клиента и соответственно списком разрешенных хостов.
>
> Сейчас возникла необходимость разрешить подключаться по ssh только
> конкретным хостам и сетям, как это настроить? Покопал документацию, но
> что-то ничего подобного не нашел.
>
> Можно конечно настроить iptables, но наверняка это можно сделать
> средствами самого OpenSSH.
/etc/hosts.deny:
sshd: ALL EXCEPT 192.168.1.1 192.168.2.0/255.255.255.0
разрешит подключение по ssh с хоста 192.168.1.1 и всех хостов сети
192.168.2.0.
man hosts_access
--
WBR, Dmitry Lebkov
next prev parent reply other threads:[~2005-11-16 10:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 10:21 Grigory Soloviov
2005-11-16 10:26 ` Alexey I. Froloff
2005-11-16 11:33 ` Grigory Soloviov
2005-11-16 10:43 ` Dmitry Lebkov [this message]
2005-11-16 10:45 ` Serge Polkovnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437B0D6B.3050706@sakhalin.ru \
--to=dima@sakhalin.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git