diff --git a/README.md b/README.md index 4fd85cb..e12ec31 100644 --- a/README.md +++ b/README.md @@ -359,4 +359,18 @@ If Incremental: # Random Other Things QR of WiFi -`qrencode -s 10 -o wifi.png 'WIFI:S:"My WiFi Network";T:WPA;P:MyPassword123;;'` \ No newline at end of file +`qrencode -s 10 -o wifi.png 'WIFI:S:"My WiFi Network";T:WPA;P:MyPassword123;;'` + +## NTFY + +Add to `/etc/profile` to get NTFY alerts on SSH logins: +``` +if [ -n "$SSH_CLIENT" ]; then + +NTFY="${USER}@$(hostname -f) from $(echo $SSH_CLIENT|awk '{print $1}')" + +curl -s -H "Title: SSH Login" -d "$NTFY" ntfy.signal9.xyz/SSH > /dev/null + +fi +``` +***