mlclm
mlclm

Reputation: 725

Installing magento 2 with magento-vagrant failing

I am trying to install magento 2 on my PC running Windows 7 , with the help of magento-vagrant ( https://github.com/paliarush/magento2-vagrant-for-developers )

At the step where is says to enter 'bash init_project.sh' I get the following errors:

[2017-04-01 16:06:14] STATUS: Checking requirements [/w/projets/shoptest.dev/vagrant-magento/scripts/host/check_requirements.sh]] [2017-04-01 16:06:14] STATUS: Installing missing vagrant plugins [init_project.sh]] [2017-04-01 16:06:16] STATUS: Generating random IP address, and host name to prevent collisions (if no custom values specified) [init_project.sh]] [2017-04-01 16:06:17] STATUS: Configuring git for Windows host [init_project.sh]] [2017-04-01 16:06:18] STATUS: Checking out CE repository [init_project.sh]] [2017-04-01 16:06:20] ERROR: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. [Unknown source file]] error: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

I have checked that my C:/users/username/.ssh folder has the public keys : correct

I have checked that when I run "ssh-add -l" I have an output of various numbers and letters mexed together. Correct.

I have added the SSH key to the ssh agentby running "ssh-add ~/.ssh/id_rsa" Correct, done.

I have copied the key to paste it in my "settings > ssh and pgp keys " category, in the SSH key field, on GitHub.com. Done.

The key icon inside my githubt account turned green and the message:

"Last used within the last day"

appeared after doing bash init_project.sh

What should I do ? I'm lost and don't know much about github and ssh in general. Just followed the steps in the tutorials.

Upvotes: 0

Views: 381

Answers (3)

FlashJordan
FlashJordan

Reputation: 137

Did you add your public key to GitHub?

In Git Bash enter clip < ~/.ssh/id_rsa.pub to copy your public key to the clipboard, then go to https://github.com/settings/keys and create a new key, and paste it in there.

Also try running bash init_project.sh from Git Bash, running as administrator.

Upvotes: 0

chen0040
chen0040

Reputation: 61

I have recently successfully install magento 2 (latest version 2.16) on vagrant and managed to solve a number of issues due to dependency and publickeys. To help anyone who might have similar issues, i have created a github project that puts up the vagrant file and instruction on how to install magento 2 with vagrant on windows (tested on win10, not sure win7 but should work as well):

https://github.com/chen0040/vagrant-magento-2.16

Upvotes: 1

Steve Hope
Steve Hope

Reputation: 254

It sounds like you haven't finished your git set-up, you have to configure the git client with your git username, and email:

    $ git config --global user.name "John Doe"
    $ git config --global user.email [email protected]

More details and additional git info at: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

Upvotes: 1

Related Questions