Category Archives : Sys admin


Drupal slow

change /etc/hosts.  For every entry related to local host (INCLUDING ipv6 entries), map to localhost, e.g.: ::1     localhost #ip6-localhost ip6-loopback fe00::0 localhost #ip6-localnet ff00::0 localhost #ip6-mcastprefix ff02::1 localhost #ip6-allnodes ff02::2 localhost #ip6-allrouters


restrict sshd users

in /etc/ssh/sshd_config (on some systems it is simply /etc/sshd_config) add: AllowUsers root AllowUsers joe Note that as soon as you enable one AllowUsers option, no users can login unless they are listed. In other words, despite the PermitRootLogin setting, if you do not set “AllowUsers root” and have “AllowUsers joe” in your configuration, root cannot log in even with a […]