I noticed that I can provision a box, and ssh to it even after commenting out both options in Homestead.yaml
, as in:
# authorize: ~/.ssh/id_rsa.pub
# keys:
# - ~/.ssh/id_rsa
Are they necessary at all? I suppose that they let me specify public/private keys for vagrant ssh
, but as I understand such pair is generated by vagrant anyway (see here). What is the actual need for those settings then?
The reason I'd like to know that is that I keep running into an issue where I cannot ssh into a box as vagrant up
keeps hanging up on homestead-7: SSH auth method: private key
(as in this question). With authorize and keys options commented out I haven't had problem with vagrant up
so far.