Im trying to set up sshblack (http://www.pettingers.org/code/sshblack.html
which is an automatic blacklisting program to stop hackers. My knowledge of linux is pretty limited and i suspect that the answer is obvious.
I have sshblack up and running but when trying to complete the howto from (ttp://wiki.oss-watch.ac.u
) i have got to the point where the perl script on thier site has been copied and all the correct paths set. the following instructions are:
[root@luggage sshblack]# cp sshblack /etc/init.d
[root@luggage sshblack]# ls -al /etc/init.d/sshblack
-rwxr-xr-x 1 root root 1863 Dec 11 15:03 /etc/init.d/sshblack
[root@luggage sshblack]# chkconfig --add sshblack
[root@luggage sshblack]# chkconfig --list sshblack
sshblack 0:off 1:off 2:on 3:on 4:on 5:on 6:off
on my server:
[root@vpstream init.d]# ls -al /etc/init.d/sshblack
-rw-r--r-- 1 root root 2893 Jul 1 13:07 /etc/init.d/sshblack
so i chmod to 755 and made it the same as their example
the problem i want answered is on my server 2:off is set to off.
[root@vpstream init.d]# chkconfig --list sshblack
sshblack 0:off 1:off 2:off 3:on 4:on 5:on 6:off
I would like to know how to turn this on. (i suspect it is as simple and obvious as the chmod which wasnt included in the instructions)
service sshblack restart
is supposed to restart this program but it comes back with
[root@vpstream init.d]# service sshblack restart
(-): (-): No such file or directory
thank you for your help.