Playing around with ChatGPT 4 (thanks to Bing) I've discovered it does pretty well on generalities but can really screw up on specifics. I asked it to write a
systemd unit file for
ssh-tarpit (a honeypot program designed to trap malicious hosts trying to login to a system using
ssh.)
It first wrote a using for using a different product,
endlesssh.
When I mentioned the error, it wrote an updated file using ssh-tarpit, but included a configuration parameter "-c /etc/ssh-tarpit/ssh-tarpit.conf".
I pointed out that ssh-tarpit doesn't use a .conf file. ChatGPT apologized, saying it actually uses a YAML file, and changed the configuration option to "-f /etc/ssh-tarpit/ssh-tarpit.yaml".
Except ssh-tarpit doesn't use a configuration file
at all. The only way to configure it is by passing parameters on the command line:
Code:
ssh-tarpit --bind-address=192.168.1.42 --bind-port=2222 \
--interval=10 --logfile=/var/log/ssh-tarpit.log