What is rkhunter
rkhunter (Rootkit Hunter) is a Unix-based tool that scans for rootkits, backdoors and possible local exploits.
Installing rkhunter
- SSH into your VPS/Server
- Change to the root directory (command below):
cd /root
- Now download the file to your server (command below):
wget http://ncu.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz
- Unpack the file (command below):
tar -xvf rkhunter-1.4.0.tar.gz
- Change the directory to the unpacked folder (command below):
cd rkhunter-1.4.0
- Run the install script (command below):
./installer.sh --layout default --install
- Check and run updates on rkhunter (command below):
/usr/local/bin/rkhunter --update
/usr/local/bin/rkhunter --propupd
- Scan your server (command below):
rkhunter --check
- If you need help with rkhunter please use the help command (command below):
rkhunter --help