jakobadam / packer-qemu-templates

Packer qemu templates
Mozilla Public License 2.0
332 stars 175 forks source link

Windows 2012 R2: Can't login with vagrant keys anymore #1

Closed jakobadam closed 9 years ago

jakobadam commented 9 years ago

Logging in with pub/priv keys is unsuccessful:

$ ssh -vvv vagrant@192.168.123.12 -i ~/.vagrant.d/insecure_private_key
...
debug1: Trying private key: /home/jakob/.vagrant.d/insecure_private_key
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug3: sign_and_send_pubkey: RSA dd:3b:b8:2e:85:04:06:e9:ab:ff:a8:0a:c0:04:6e:d6
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method
...

On the sshd side the windows application log says:

"Authentication refused: bad ownership or modes for directory
/cygdrive/c/Users/vagrant"