diff --git a/plugins/guests/linux/cap/remove_public_key.rb b/plugins/guests/linux/cap/remove_public_key.rb index de696fa69..dfd9daae5 100644 --- a/plugins/guests/linux/cap/remove_public_key.rb +++ b/plugins/guests/linux/cap/remove_public_key.rb @@ -13,6 +13,7 @@ module VagrantPlugins comm.execute(< ~/.ssh/authorized_keys.new mv ~/.ssh/authorized_keys.new ~/.ssh/authorized_keys +chmod 600 ~/.ssh/authorized_keys SCRIPT end end