Update 'README.md'
This commit is contained in:
parent
2c35182c5c
commit
1a0ee41471
14
README.md
14
README.md
|
@ -1,3 +1,15 @@
|
|||
# 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
|
||||
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
|
||||
```
|
||||
|
||||
2) Copy `sshd-login.sh` to `/usr/local/sbin/sshd-login` (without extension) and replace the placeholder webhook URL with a working one
|
||||
|
||||
3) pray that it works
|
Loading…
Reference in a new issue