Fixed some typos
Fixed some typos
This commit is contained in:
parent
b638d510a3
commit
48cc6af869
@ -116,12 +116,12 @@ Watchdog can send notifications on user login. Just add to ```/etc/profile.d/ssh
|
|||||||
1. ```User=$(whoami)```
|
1. ```User=$(whoami)```
|
||||||
1. ```IP=$(echo $SSH_CONNECTION | awk '{ print $1 == "" ? "127.0.0.1" : $1 }')```
|
1. ```IP=$(echo $SSH_CONNECTION | awk '{ print $1 == "" ? "127.0.0.1" : $1 }')```
|
||||||
1. ```ICON_INFO=$(echo -e "\U2139")```
|
1. ```ICON_INFO=$(echo -e "\U2139")```
|
||||||
1. ```send-telegram "${ICON_INFO} SSH: User ${Users} is logged in from ${IP}"```
|
1. ```send-telegram "${ICON_INFO} SSH: User ${User} is logged in from ${IP}"```
|
||||||
- For e-mail:
|
- For e-mail:
|
||||||
1. ```User=$(whoami)```
|
1. ```User=$(whoami)```
|
||||||
1. ```IP=$(echo $SSH_CONNECTION | awk '{ print $1 == "" ? "127.0.0.1" : $1 }')```
|
1. ```IP=$(echo $SSH_CONNECTION | awk '{ print $1 == "" ? "127.0.0.1" : $1 }')```
|
||||||
1. ```ICON_INFO=$(echo -e "\U2139")```
|
1. ```ICON_INFO=$(echo -e "\U2139")```
|
||||||
1. ```send-mail your@mail.addr '${ICON_INFO} SSH: User ${Users} is logged in' '${ICON_INFO} SSH: User ${Users} is logged in from ${IP}'```
|
1. ```send-mail your@mail.addr '${ICON_INFO} SSH: User ${User} is logged in' '${ICON_INFO} SSH: User ${User} is logged in from ${IP}'```
|
||||||
|
|
||||||
## User logouts monitoring (*nix)
|
## User logouts monitoring (*nix)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user