sshlog/util
Augusto Dwenger J. c70df10d0d Replace IPv4/IPv6 handling with address argument
To have better handling regarding the interface and port to used.
This makes the application only use one address at the time, but
if I want the application to bind to IPv4 and IPv6 I can spawn two
instances or use Docker and its networking to bind it on the host on
both addresses.
2024-09-29 23:15:18 +02:00
..
README.md Add a README inside utils with systemd instructions 2021-06-18 21:26:20 +02:00
sshlog.service Replace IPv4/IPv6 handling with address argument 2024-09-29 23:15:18 +02:00

Utility

A collection of scripts and useful configurations.

Systemd

You can use the example sshlog.service to run sshlog as a service under Systemd.

Copy the sshlog.service into /etc/systemd/system/sshlog.service and change the ExecStart value to point to the sshlog executable. If you installed it with go install it will be propably located inside your $GOPATH/bin directory. Use the full path as value for the ExecStart parameter. This is also the location if you wannt to give it some arguments like -p 2222 for the listening port.

After saving the configuration under /etc/systemd/system/sshlog.service it can be started with systemctl start sshlog.service and enabled to run on system boot with systemctl enable sshlog.service

While running it with Systemd all logs can be accesst with journalctl -u sshlog.service.