130 days ago · Tech · hide · Fediverse post

Keeping track of which developer is connecting to which server can be a job in itself. There are plenty of ways to handle it, from sending logs to dedicated software to writing them to a file that someone has to check manually. Our sshpiper [https://github.com/tg123/sshpiper] setup takes a different approach and sends a Slack notification to a dedicated channel whenever a connection happens. This means we can keep an eye on things and quickly confirm that connections are genuine and expected. To make this work, we built a custom notification plugin that sits between the existing fail2ban [https://github.com/tg123/sshpiper/blob/master/plugin/failtoban] and workingdir [https://github.com/tg123/sshpiper/blob/master/plugin/workingdir] plugins. A working sshpiper install is required for this OVERVIEW The files used for this plugin are * /plugins/authnotify/main.go - The go code (which gets compiled) * /etc/sshpiperd/slack-webhook-url - Text file with your incoming webhook THE PLUGIN CODE…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town