diff --git a/lib/vagrant/util/ssh.rb b/lib/vagrant/util/ssh.rb index a13314a62..c3da32c52 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -33,7 +33,7 @@ module Vagrant LOGGER.debug("Checking key permissions: #{key_path}") stat = key_path.stat - if !stat.owned? + if !(stat.owned? || (Process.uid == 0)) # The SSH key must be owned by ourselves raise Errors::SSHKeyBadOwner, key_path: key_path end