Fix permissions on "~/.ssh/authorized_keys"

This commit is contained in:
Mikhail Zholobov 2015-11-22 19:24:33 +02:00
parent d5fa7416ff
commit 4e4029a076
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ module VagrantPlugins
comm.execute(<<SCRIPT)
sed -e '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.new
mv ~/.ssh/authorized_keys.new ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
SCRIPT
end
end