Purpose of Homestead/Laravel rsa keys

Published 2 months ago by osuwariboy

Hey there,

I'm currently configuring a Homestead/Laravel vagrant box on my windows machine and I'm kind of lost as to the purpose of the "authorize" and "keys" directives in the Homestead.yaml file.

I tried the following expecting something to actually crash, but to my surprise, everything built normally:

# authorize: ~/.ssh/id_rsa.pub

# keys:
#     - ~/.ssh/id_rsa

Putty can connect to the machine no problem and the machine works as expected. So... what is the purpose of these lines? Can someone tell me?

Thanks in advance.

Cronix
Cronix
2 months ago (169,770 XP)

so you can use homestead ssh or vagrant ssh commands to ssh into homestead. If you're using putty, just ignore it.

osuwariboy

But... vagrant ssh works even though I commented out the configuration.

Cronix
Cronix
2 months ago (169,770 XP)

did you reprovision the server after doing that?

osuwariboy

I did a vagrant destroy and then a vagrant up. Unless I'm mistaken, that should have reprovisioned the box, no? Also, the box I'm currently using is Homestead/laravel

Please sign in or create an account to participate in this conversation.