keeping this here so i dont forget how i did it. stolen and modified from https://danirod.es/blog/2017/receive-sshd-login-notifications
Go to file
2021-05-10 13:37:40 +00:00
LICENSE Initial commit 2021-05-10 13:28:27 +00:00
README.md Update 'README.md' 2021-05-10 13:37:40 +00:00
sshd-login.sh Add 'sshd-login.sh' 2021-05-10 13:30:17 +00:00

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

  1. Add the following to /etc/pam.d/sshd:
session   optional  pam_exec.so /usr/local/sbin/sshd-login
  1. 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"
  1. pray that it works

  2. it probably doesn't

  3. chmod +x /usr/local/sbin/sshd-login

  4. now it should work