louie miranda wrote:

>Hi, im planning to limit 1 user connection per user ip on ssh, is this
>possible?
>
>=====
>Thanks,
>Louie Miranda...
>
>WebUrl: http://axis0.endofinternet.org
>Email: [EMAIL PROTECTED] - [EMAIL PROTECTED]
>
>
>
  I use the setup shown below to restrict the connection on ssh. Because
the platform is RedHat 7.0, the mentioned file path or the filename
might be different on other versions.

  1. change the setting in "/etc/ssh/sshd_config" to restrict the
arbitrary access :
     PermitRootLogin    no
     UseLogin           no
     AllowUsers         <permitted username>

  2. setup in "/etc/hosts.deny" to refuse all connection :
     ALL:ALL

  3. setup in "/etc/hosts.allow" to accept selected connections :
     sshd:<network number>/<network mask>

  Hope it helps.



Michael



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to