Merge pull request #5175 from hdeheer/patch-1

synced/folders/rsync Add 'IdentitiesOnly=yes'
This commit is contained in:
Mitchell Hashimoto 2015-02-24 10:06:24 -08:00
commit 808a86a918
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ module VagrantPlugins
"ssh -p #{ssh_info[:port]} " + "ssh -p #{ssh_info[:port]} " +
proxy_command + proxy_command +
"-o StrictHostKeyChecking=no " + "-o StrictHostKeyChecking=no " +
"-o IdentitiesOnly=true " +
"-o UserKnownHostsFile=/dev/null", "-o UserKnownHostsFile=/dev/null",
ssh_info[:private_key_path].map { |p| "-i '#{p}'" }, ssh_info[:private_key_path].map { |p| "-i '#{p}'" },
].flatten.join(" ") ].flatten.join(" ")