tool man xyz
  • Home
  • Login

SSH登入自動傳送通知

By User on 2022-11-07 23:34:39

.
.
.
.
.
user@pc:~$ nano /etc/ssh/sshrc

ip=`echo $SSH_CONNECTION | cut -d " " -f 1`

logger -t ssh-wrapper $USER login from $ip
echo "User $USER just logged in from $ip" | \
sendemail -f <source email> -t <target email> \
-s <smtp server ip> -xu <username> -xp <password> \
-u <tittle> -m <message> &


Tags: Shell script Linux
MORE
網站與社群連結常用的 SEO 中繼標籤

網站與社群連結常用的 SEO 中繼標籤

Win10 命令提示字元無法貼上

Win10 命令提示字元無法貼上

moovit 線上導航地圖

moovit 線上導航地圖

Google出現關鍵字自動提醒

Google出現關鍵字自動提醒

AD

[廣告]零廣告欣賞百萬首好歌

PostgreSQL vs MySQL

PostgreSQL vs MySQL

mysql insert into where not exists

mysql insert into where not exists

Website revision history

Website revision history

黑鷹失事意外 暗頭4輕傷者已經送病院治療

黑鷹失事意外 暗頭4輕傷者已經送病院治療

AD2

[廣告]一件下單,35分鐘美食送達

COMMENTS
Login to continue.
User
nano /etc/ssh/sshrc
  • « Previous
  • 68
  • 69
  • 70
  • » Next
More

網站與社群連結常用的 SEO 中繼標籤

Win10 命令提示字元無法貼上

moovit 線上導航地圖

Google出現關鍵字自動提醒

PostgreSQL vs MySQL

mysql insert into where not exists

Website revision history

黑鷹失事意外 暗頭4輕傷者已經送病院治療

Search
廣告
CCU ZERO

CCU ZERO CLUB

Follow

  • Telegram
  • Line
  • Instagram
  • YouTube
  • GitHub

Feedback

  • 問題回報

contact

  • e-mail
© 2020 tool man xyz