Monday, June 9, 2008

Very slow SSH logging in

If logging in to SSH is sooooo sloooooow.

From http://ubuntuforums.org/showthread.php?t=422907
- Type
vi /etc/ssh/sshd_config

- Add this line into that file, and then save, and exit
UseDNS no

- Type
service sshd restart

Sunday, June 8, 2008

Auto-Block SSH Intruder on Fedora7

From เมื่อถูก Brute-Force Attack ที่ sshd

Log in as root and type:
chmod 604 /var/log/secure
yum -y install denyhosts
service denyhosts start
chkconfig denyhosts on

Then DenyHosts will do its job. No need for maintenance.

You can view the blocked IP at:
/etc/hosts.deny


Activity log file is here:
/var/log/secure


The configuration of denyhosts is here:
/etc/denyhosts.conf