Skip to content

Commit

Permalink
Merge pull request hashicorp#5175 from hdeheer/patch-1
Browse files Browse the repository at this point in the history
synced/folders/rsync Add 'IdentitiesOnly=yes'
  • Loading branch information
mitchellh committed Feb 24, 2015
2 parents 8a08525 + 7e5391c commit 808a86a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/synced_folders/rsync/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def self.rsync_single(machine, ssh_info, opts)
"ssh -p #{ssh_info[:port]} " +
proxy_command +
"-o StrictHostKeyChecking=no " +
"-o IdentitiesOnly=true " +
"-o UserKnownHostsFile=/dev/null",
ssh_info[:private_key_path].map { |p| "-i '#{p}'" },
].flatten.join(" ")
Expand Down

0 comments on commit 808a86a

Please sign in to comment.