osync icon indicating copy to clipboard operation
osync copied to clipboard

Please use ssh ControlMaster by default

Open axkibe opened this issue 4 years ago • 3 comments

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.

axkibe avatar Dec 03 '19 16:12 axkibe

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])

deajan avatar Dec 06 '19 09:12 deajan

I really suggest enabling this by default.. And I didn't find it being mention in the config file of v1.3beta3

axkibe avatar Jan 08 '20 12:01 axkibe

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.

deajan avatar Jan 08 '20 12:01 deajan