Hacker News new | ask | show | jobs
by ohkine 4865 days ago
In ~/.ssh/config there is a directive called LocalCommand that you can use to do an rsync (or anything else you want) just prior to making the connection. This way you can have it automatically update remote hosts with your shell scripts each time you connect.
1 comments

Now that's what I'm talking about!

And here's me thinking I'd have to manually write a simple wrapper to do this.

Thanks a million :)