Line 0
Link Here
|
|
|
1 |
--- plugins/guests/linux/cap/public_key.rb.orig 2016-09-16 14:28:57 UTC |
2 |
+++ plugins/guests/linux/cap/public_key.rb |
3 |
@@ -54,6 +54,7 @@ module VagrantPlugins |
4 |
if test -f ~/.ssh/authorized_keys; then |
5 |
grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp |
6 |
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys |
7 |
+ chmod 0600 ~/.ssh/authorized_keys |
8 |
fi |
9 |
|
10 |
rm -f '#{remote_path}' |