osync
osync copied to clipboard
Please use ssh ControlMaster by default
I just wanted to make a sync while connected via ssh, since the ssh-agent wasn't running on the ssh connection, I had to enter the passphrase for my ssh file about a dozen times for it to complete (while being on an unreliable connection :-/)
Please see here how to keep a ssh connection open across multiple rsync calls and consider this https://unix.stackexchange.com/questions/50508/reusing-ssh-session-for-repeated-rsync-commands
Also in the case of ssh agent or no passphrase this should improve speed quite a bit not having to do all the handshakes over and over again.
Hello,
osync already implements controlmaster in current v1.3 master builds.
You can set that via the config file or just export a SSH_CONTROLMASTER=true
variable before execution (ie SSH_CONTROLMASTER=true osync.sh [args]
)
I really suggest enabling this by default.. And I didn't find it being mention in the config file of v1.3beta3
As I said, SSH_CONTROLMASTER is in the current master, which should become RC1 fairly quickly. Since multiplexing is supported for like 15 years, it shouldn't be that of a big issue setting it as default. I'll have to validate all platform tests though.