월간 인기 게시물

게시물 111건
   
How to Get Root and User SSH Login Email Alerts
글쓴이 : 최고관리자 날짜 : 2017-05-17 (수) 13:24 조회 : 239796
글주소 :
                             

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.