fixes #7610
This commit is contained in:
parent
9ab0d4b554
commit
a6760dd8e7
|
@ -54,6 +54,7 @@ module VagrantPlugins
|
||||||
if test -f ~/.ssh/authorized_keys; then
|
if test -f ~/.ssh/authorized_keys; then
|
||||||
grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp
|
grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp
|
||||||
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
|
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
|
||||||
|
chmod 0600 ~/.ssh/authorized_keys
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f '#{remote_path}'
|
rm -f '#{remote_path}'
|
||||||
|
|
Loading…
Reference in New Issue