Blog

If you want to record users ssh login activity and receive an email every time a user has logged into your Linux machine you can use a bash script. To do so, 1- First, create a bash script and put the following code in it: whoami > “/root/logs/login.log” echo “——————————————————-”
It’s really easy to write a bash script and create a Simple Remote TCP Port Health Checker on your Linux server. The goal is to check periodically whether a TCP port is open (serving) or not. If the port is not open, we want to log the time and preferably send