ggiamarchi / vagrant-openstack-provider

Use Vagrant to manage OpenStack Cloud instances.
MIT License
247 stars 101 forks source link

Use only provided ssh key and don't touch the known_hosts #259

Closed artem-sidorenko closed 8 years ago

artem-sidorenko commented 8 years ago

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

ggiamarchi commented 8 years ago

LGTM, Thanks !