keeping this here so i dont forget how i did it. stolen and modified from https://danirod.es/blog/2017/receive-sshd-login-notifications
LICENSE | ||
README.md | ||
sshd-login.sh |
sshd-discord-webhook
keeping this here so i dont forget how i did it. stolen and modified from https://danirod.es/blog/2017/receive-sshd-login-notifications
how do
- Add the following to
/etc/pam.d/sshd
:
session optional pam_exec.so /usr/local/sbin/sshd-login
- Copy
sshd-login.sh
to/usr/local/sbin/sshd-login
(without extension) and replace the placeholder webhook URL with a working one
sudo sh -c "curl https://gitea.janderedev.xyz/Jan/sshd-discord-webhook/raw/branch/master/sshd-login.sh > /usr/local/sbin/sshd-login"
-
pray that it works
-
it probably doesn't
-
chmod +x /usr/local/sbin/sshd-login
-
now it should work
-
if it still doesn't work, consider sacrificing your first newborn child to stallman