-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bsync over ssh doesn't use existing 'ControlPath' #14
Comments
Hi, Maybe we should add flag to disable it. I will take a look at it when I have time. |
Is it possible for you to use an ssh key for authenticating? With an ssh key the password prompt is not a problem anymore. Otherwise the only solution I see it too add a flag, say, -m, to disable bsync internal controlmaster connexion. What do you think? |
It would be great if this were configurable. For example, the ansible project allows you to override the default ssh_args in a .conf file. Either that or a simple command line flag would definitely suffice. |
There is now a -o option to add custom ssh options. We may also add an option to disable controlmaster ssh optimisation. |
Fantastic! I should be able to test this shortly. Are the changes in master or one of the branches? |
-o option is in master. |
couldn't detection be done like this: $ ssh host -G | grep ^controlmaster vs. $ ssh host -G | grep ^controlmaster man ssh: |
E.g. I have a ~/.ssh/config set up so:
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
ControlPersist 1h
ForwardAgent yes
Host rs
Hostname remoteserverip
User myusername
It does use the host shortcut I set up, but it doesn't respect/utilize the control persist I am using. This should use the existing connection instead of creating a new one and requesting my password every time.
The text was updated successfully, but these errors were encountered: