How to add warning notification of ssh connection for server
Posted onIntutorialViews: Word count in article: 2.9kReading time ≈3 mins.
Why we need ssh connection notification
It is very necessary to be noticed if someone loged into your server via ssh for safety considering.
How to deploy
Prometheus alert setup
First of all, you need to deploy prometheus alert program following the official instruction, so that you can get a webhook to use, which can reduce the risk of personal information leakage.
The next, you need to go to prometheus alert web page. Click custom template, choose an email setting.