In setups with ssh-agent with >=6 keys rsync runs into authentication
failures as it tries the agent keys first and then the provided key.
Because of default MaxAuthTries=6 in sshd_config the provided key isn't
reached and there is an authentication error
In setups with ssh-agent with >=6 keys rsync runs into authentication failures as it tries the agent keys first and then the provided key. Because of default MaxAuthTries=6 in sshd_config the provided key isn't reached and there is an authentication error
This change is aligned with vagrant ssh handling: https://github.com/mitchellh/vagrant/blob/b721eb62cfbfa93895d0d4cf019436ab6b1df05d/lib/vagrant/util/ssh.rb#L108-L121