diff --git a/plugins/guests/freebsd/cap/remove_public_key.rb b/plugins/guests/freebsd/cap/remove_public_key.rb index 13abc864b..8d5526ca4 100644 --- a/plugins/guests/freebsd/cap/remove_public_key.rb +++ b/plugins/guests/freebsd/cap/remove_public_key.rb @@ -11,7 +11,7 @@ module VagrantPlugins machine.communicate.tap do |comm| if comm.test("test -f ~/.ssh/authorized_keys") comm.execute( - "sed -i '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys") + "sed -i .bak '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys") end end end