/etc/hosts.deny $ cat /etc/hosts.deny # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap!
sshd: all
sudo gedit /etc/hosts.deny
ALL: ALL /etc/hosts.allow $ cat /etc/hosts.allow # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # sshd: 93.42.132.43 86.34.22.122
sudo gedit /etc/hosts.allow
sshd: 192.168.0.10 # Permitir una dirección. sshd: 192.168.0.* # Permitir todo el rango de la IP 192.168.0.1 a 192.168.0.255.
No hay comentarios:
Publicar un comentario