dyindude / ubuntu-zfs

BSD 2-Clause "Simplified" License
8 stars 4 forks source link

authorized_keys owned by root #47

Open dyindude opened 4 years ago

dyindude commented 4 years ago

when attempting a vagrant reload, we get the following errors:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir -p ~/.ssh
chmod 0700 ~/.ssh
cat '/tmp/vagrant-insert-pubkey-1570625932' >> ~/.ssh/authorized_keys && chmod 0600 ~/.ssh/authorized_keys
result=$?
rm -f '/tmp/vagrant-insert-pubkey-1570625932'
exit $result

Stdout from the command:

Stderr from the command:

bash: line 6: /home/vagrant/.ssh/authorized_keys: Permission denied

should be a simple fix