Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #108

Closed
wants to merge 1 commit into from
Closed

Update README.md #108

wants to merge 1 commit into from

Conversation

swimmyxox
Copy link

@swimmyxox swimmyxox commented Jul 30, 2020

I got the following error when I was trying to install.
Changed the path using https , what do you think?

before

$ git clone git@github.com:jackdbd/threejs-es6-webpack-starter.git
Cloning into 'threejs-es6-webpack-starter'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

after

$ git clone https://github.com/jackdbd/threejs-es6-webpack-starter.git
Cloning into 'threejs-es6-webpack-starter'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 1323 (delta 62), reused 76 (delta 31), pack-reused 1205
Receiving objects: 100% (1323/1323), 48.15 MiB | 12.50 MiB/s, done.
Resolving deltas: 100% (654/654), done.

I got the following error when I was trying to install.
Change the path using https , what do you think?

### before

```
$ git clone git@github.com:jackdbd/threejs-es6-webpack-starter.git
Cloning into 'threejs-es6-webpack-starter'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

### after

```
$ git clone https://github.com/jackdbd/threejs-es6-webpack-starter.git
Cloning into 'threejs-es6-webpack-starter'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 1323 (delta 62), reused 76 (delta 31), pack-reused 1205
Receiving objects: 100% (1323/1323), 48.15 MiB | 12.50 MiB/s, done.
Resolving deltas: 100% (654/654), done.
```
@jackdbd
Copy link
Owner

jackdbd commented Jul 30, 2020

Thanks for the report.
You can certainly clone the project with https, but the reason you are getting Permission denied (publickey) is likely due to a problem in your SSH configuration. Try cloning any other project on GitHub to see if you get the same error.

You might need to generate an SSH key. See here:
https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Also, a good security practice (but a bit more advanced and not required to fix this problem) is to use a SSH key for every service you want to use (e.g. a SSH key for GitHub, another one for GitLab, etc). A convenient way to manage multiple SSH keys is to use a SSH config file.
https://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

Hope this helps.

@swimmyxox
Copy link
Author

Thanks for letting know me.

After doing what you said, I was able to clone without problems.
Thank you so much.

@swimmyxox swimmyxox closed this Jul 30, 2020
@swimmyxox swimmyxox deleted the patch-1 branch July 30, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants