Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

SOLVED: private_key_path file must exist: ~/.ssh/id_rsa #234

Open
mloskot opened this issue Oct 31, 2019 · 2 comments
Open

SOLVED: private_key_path file must exist: ~/.ssh/id_rsa #234

mloskot opened this issue Oct 31, 2019 · 2 comments

Comments

@mloskot
Copy link

mloskot commented Oct 31, 2019

I'm using the v2.0.0 on Windows 10.
I am following the steps in the current README.md, having now all az set up, logged in and environment variables set.

Now, using the sample/default Vagrantfile from the README for config.vm.box = 'azure' fails for me with this:

PS D:\_\vagrant\vagrant-azure> vagrant up --provider=azure
There are errors in the configuration of this machine. Please fix
the following errors and try again:

SSH:
* `private_key_path` file must exist: ~/.ssh/id_rsa

PS D:\_\vagrant\vagrant-azure>
  • Is there anything missing from the docs about the SSH private key and ~/.ssh/id_rsa path?
  • Is user supposed to ssh-keygen-generate it prior provisioning the VM? It is the host location, isn't it?
@mloskot
Copy link
Author

mloskot commented Nov 6, 2019

I will answer my own questions:

Is there anything missing from the docs about the SSH private key and ~/.ssh/id_rsa path?

Yes, mention that the ~/.ssh/id_rsa is nothing default to copy from somewhere but a key that user needs to generate.

Is user supposed to ssh-keygen-generate it prior provisioning the VM? It is the host location, isn't it?

Yes.

$ cd vagrant-azure
$ ssh-keygen -t rsa  -f azure_private_key.id_rsa

and then update the line in the Vagrantfile to read

config.ssh.private_key_path = File.join(File.dirname(__FILE__), 'azure_private_key.id_rsa')

@mloskot mloskot closed this as completed Nov 6, 2019
@mloskot mloskot changed the title private_key_path file must exist: ~/.ssh/id_rsa SOLVED: private_key_path file must exist: ~/.ssh/id_rsa Nov 6, 2019
@mloskot mloskot reopened this Nov 6, 2019
@dikkedimi
Copy link

dikkedimi commented Oct 12, 2020

yay, this solved my issue :D
was trying to get FlatCAMworking on macOS Catalina using Jay Wiggins' guide and got stuck at vagrant up --provision

leaving this comment as a breadcrumb for others attempting the same (and myself, if i ever forget)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants