Unison is a file-synchronization tool that works over ssh. It accepts configurations in profile (.prf
) files. I use an alias
unison my-pref.prf && ssh sameuser@sameserver.fr 'cat toto'
Hence I have to type my password twice. Do you know any way to execute a command on the remote host "before" unison closes the ssh session?