mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 06:40:13 -08:00
added info on where to reference the ssh login notification
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# This script is referenced in `/etc/pam.d/sshd`
|
||||||
|
# - at the end of the `sshd` file, add
|
||||||
|
# `session optional pam_exec.so /home/acedanger/shell/ssh-login.sh`
|
||||||
|
#
|
||||||
|
|
||||||
if [ "${PAM_TYPE}" = "open_session" ]; then
|
if [ "${PAM_TYPE}" = "open_session" ]; then
|
||||||
curl \
|
curl \
|
||||||
-H prio:high \
|
-H prio:high \
|
||||||
|
|||||||
Reference in New Issue
Block a user