ssh-copy-id -i ~/.ssh/id_rsa_honeybot.pub pi@raspberrypi.local ssh pi@raspberrypi.local -i ~/.ssh/id_rsa_honeybot sudo service ssh restart apt-get install iptables-persistent :msg,contains,"iptables: " /var/log/iptables.log service rsyslog restart tail -f /var/log/iptables.log ##ipv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 apt-get install python3-rpi.gpio daemonize mosquitto mosquitto-clients def raiseAlert(relay): GPIO.output(relay,GPIO.HIGH) time.sleep(5) GPIO.output(relay,GPIO.LOW) def sendAlert(server, message): pub.single('honeyBot/IP', message, hostname=server)