¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 111°Ç
   
How to Get Root and User SSH Login Email Alerts
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2017-05-17 (¼ö) 13:24 Á¶È¸ : 237971
±ÛÁÖ¼Ò :
                             

https://www.tecmint.com/get-root-ssh-login-email-alerts-in-linux/?utm_content=buffer44840&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer


.bashrc
# Send mail
echo 'ALERT - Root Shell Access on:' `hostname` `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" mojily@chonnom.com

# Send Telegram
curl -F text="ALERT - Root Shell Access on:' `hostname` `date` `who`" -F chat_id=XXXXXXXX,  https://api.telegram.org/botXXXXXX:AAHCmUCKnXXXXXXXXXwNmZENrLc/sendMessage

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.