1

SSH LocalCommand on exit

view story
linux-howto

http://unix.stackexchange.com – In ~/.ssh/config you can use the LocalCommand directive to execute a local command whenever you connect to a remote machine via SSH. But how do I execute a command when I exit an SSH connection? It seems that *.bashrc/.bash_profile* files are not sourced when connection ends or is closed. (HowTos)