6 Aug
2018
6 Aug
'18
11:45 a.m.
I need to run a command on the *client* machine immediately after making an ssh connection, is there any clever way to do this? Specifically I want to execute an rsync command whenever I connect to certain systems, I have 'ControlMaster auto' set in my ssh config file so the rsync command will run without asking for a password/key. Any ideas anyone? I suppose one could alias the ssh and fire something off in the background with a wait before the actual ssh but this does seem a bit crude. -- Chris Green