From 4e4029a076cc15a00acd7257c5ff19f47488bf7a Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Sun, 22 Nov 2015 19:24:33 +0200 Subject: [PATCH] Fix permissions on "~/.ssh/authorized_keys" --- plugins/guests/linux/cap/remove_public_key.rb | 1 + 1 file changed, 1 insertion(+) 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