vagrant halt public and private keys
After completing episode 1, I exit out of the VM and use vagrant halt. I get the following:
brian@CT15-A5 ~/gswd $ vagrant halt [default] Attempting graceful shutdown of VM... SSH authentication failed! This is typically caused by the public/private keypair for the SSH user not being properly set on the guest VM. Please verify that the guest VM is setup with the proper public key, and that the private key path for Vagrant is setup properly as well.
If I do vagrant suspend, and hen vagrant halt, it seems that I am able to halt the machine. But then when I try to vagrant up again, I get the same message. And now when i vagrant ssh, it wants to know my vagrant password. I didn't set one but I figured out that the pw is vagrant. Not sure what is happening here. Can someone help me get my public/private keys right?
Answers
I don't believe I've ever seen that behavior before. Assuming you have SSH keys on your host machine, you should be able to copy them to the VM with scp /path/to/your/ssh.key.pub [email protected]:~/ and then move them into ~/.ssh/authorized_keys on the VM. The authorized_keys file needs to be CHMOD'd to 600, IIRC.