Hi,
I've managed to write a script which logs whether or not a connection is via SSH or direct, along with the IP address of the connecting party, but I can't get it to work the same on logout.
I created a script at ~/.logout which is called via trap '$HOME/.logout' 0 in ~/.profile. The script...