diff --git a/plugins/guests/linux/cap/insert_public_key.rb b/plugins/guests/linux/cap/insert_public_key.rb index b7335bdc5..08edb90ae 100644 --- a/plugins/guests/linux/cap/insert_public_key.rb +++ b/plugins/guests/linux/cap/insert_public_key.rb @@ -4,7 +4,7 @@ module VagrantPlugins class InsertPublicKey def self.insert_public_key(machine, contents) comm = machine.communicate - contents = contents.chomp + contents = contents.chomp << "\n" remote_path = "/tmp/vagrant-authorized-keys-#{Time.now.to_i}" Tempfile.open("vagrant-linux-insert-public-key") do |f|