Skip to content

Commit

Permalink
fixes #7610
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhendren committed Jul 19, 2016
1 parent 9ab0d4b commit a6760dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/guests/linux/cap/public_key.rb
Expand Up @@ -54,6 +54,7 @@ def self.remove_public_key(machine, contents)
if test -f ~/.ssh/authorized_keys; then
grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp
mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
fi
rm -f '#{remote_path}'
Expand Down

1 comment on commit a6760dd

@codeams
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Please sign in to comment.