On this link http://www.cyberciti.biz/faq/block-ssh-attacks-with-denyhosts/ if you search following
grep 'from' /var/log/auth.log|cut -d ' ' –field=13 | uniq -c | sort -nr > ct-result.txt
the comment says to grep all the IPs and put them to /etc/hosts.deny I want to try what comment is saying but when I do it I get following error cut: you must specify a list of bytes, characters, or fields`
what exactly should I be doing?
Also how do I make sure if I installed denyhosts then it is working.
I installed but can not see the daemon running.
ps -el | grep denyhosts
gives no output.
Also when I check tcp wrappers configuration
tcpdchk -v Cannot find your inetd.conf or tlid.conf file. Please specify its location.
What is it complaining for?