Thursday, 11 August 2011

Ubuntu - hosts.allow & hosts.deny from openssh-server

Hello guys,

This is just example configure for 2 files: hosts.allow, hosts.deny:
  1. sudo vim /etc/hosts.deny
    • ALL : ALL -> For disabled all host can not access my server
  2. sudo vim /etc/hosts.allow
    • sshd: 192.168.11.1 -> For enabled host that can access my server
  3. sudo /etc/init.d/ssh restart
  4. Done!

Good luck!

No comments:

Post a Comment