#!/bin/bash read -d " " ip <<< $SSH_CONNECTION reverse=$(dig -x $ip +short) who=$(whoami) hostname=$(hostname) curl --insecure "https://smsapi.free-mobile.fr/sendmsg?user=##USER A ENTRER##&pass=##CLE A ENTRER##&msg=Une connexion de $who sur $hostname vient d'être lancée ($ip:$reverse)"