4 ms·
The environment variable SSH_CONNECTION also gives this info. I have almost the same setup. mine looks sort of like this. echo "${SSH_CONNECTION}" | awk '{pr
by somat 4y ago
The environment variable SSH_CONNECTION also gives this info. I have almost the same setup.
mine looks sort of like this.
echo "${SSH_CONNECTION}" |
awk '{print $1}' |
cat "/var/ip_log" - |
uniq > "/var/ip_log.new"
mv "/var/ip_log.new" "/var/ip_log"
- usrn 4y agoOn my machine I send this directly to nsupdate and have part of my personal domain delegated to that machine for dns stuff like this.