Email or SMS alert / notification on SSH login using PHP script

Get Email or SMS notification on SSH login with PHP script using these instructions

Create a new file called sshrc in /etc/ssh/
Paste these commands:
#!/bin/sh
TEXT="$(date): ssh login to ${USER}@$(hostname -f)"
TEXT="$TEXT from $(echo $SSH_CLIENT|awk '{print $1}')"
/usr/bin/php /var/www/yourdomain.com/ssh-login-alert.php "$TEXT"

Then in your PHP script
< ?php
$arg1 = $argv[1];
mail("someone@example.com","[SMS] SSH Login", "SSH Login notification: $arg1");
? >

Now you read more


Android Google Pixel phone kills entire WiFi router or Internet when connected.

If you have an ASUS router and whenever you connect your Android or Google Pixel phone and your entire WiFi router goes down then go to your router and enable QoS in the menu. If you have ASUS log into your router and go to Traffic Manager > QoS then read more


Google Domains Dynamic DNS Updater Windows Client

I created a client to update your Google Domains Dynamic DNS. Feel free to download and try it. You can minimize the app to system tray and it will keep checking for updates in the background every few minutes defined by you. Works with both IPv4 and IPv6.
Works with Windows read more


Cricket Wireless Reward and referral code for 25 off credit

Got some Cricket Wireless Reward and referral code for 25 off credit
Cell Phone Plans: Unlimited Talk & Text + Data Access No Annual / Contract No Overages / Monthly Taxes Included Here is the link ❮ Link ❯

Get your Cricket Wireless Coupon code for your account.

4 Lines of Unlimited Data for read more


Connecting via SSH and SFTP as www-data using key based authentication

For Debian or Ubuntu server.

Connecting to SSH using SFTP as www-data using key based authentication is easy.
These are the steps to follow.

cd /
mkdir /www-data
chmod 0755 /www-data/
cd www-data
mkdir .ssh
cd .ssh
chmod 0700 /www-data/.ssh
nano read more