The really snazzy way to do it is with tcp wrappers.

Build SSH with "./configure --with-libwrap=/SOMEWHERE" where that
SOMEWHERE is the location of the libwrap.a file you salvaged from
compiling TCP wrappers. If you didn't save libwrap.a, grab the tcp wrapper
package and build it - it only takes a moment.

Once you build your tcp-wrapper-enhanced version of sshd, enter it into
/etc/hosts.allow and /etc/hosts.deny.  The service name is the name of the
binary you ran to start sshd, e.g. if you start it as "sshd" then use
"sshd" as the service name, and if it's "sshd2" then use "sshd2" as the
service name.

--
Gregor Mosheh
[EMAIL PROTECTED]
Systems Admin, Humboldt Internet
707.825.4638


On Wed, 8 Dec 1999, Rogelio Sevilla wrote:

> Hi..
> How can i do to give access only some segments on SSH??
> 
> On the sshd_config i saw somes lines to configurate it.. but don't work.
> 
> DenyHosts 192.168.*.*
> AllowHosts 192.168.1.1, 192.168.2.*
> 
> that's ok???
> 
> thnx.
> 
> ________|-------------------------------------------------------------|_______
> \      :| )\   /( Rogelio Sevilla Fernandez                   )\   /( |:     /
>  \     :|  )\_/(  Subdireccion de Computo y Sistemas           )\_/(  |:    /
>   \  > :| (/^|^\) Universidad de Colima   Tel.(331) 4 33 81   (/^|^\) |: < / 
>   /  > :| \ *|* / Av. Universidad #333    FAX.(331) 4 30 06   \ *|* / |: < \
>  /     :|  \ | /  [EMAIL PROTECTED]       [EMAIL PROTECTED] \ | /  |:    \  
> /______:/---\|/-------------------------------------------------\|/---\:_____\
> 
> 
> 

Reply via email to