knowthen / fpjs

Companion repo for Functional Programming for Beginners with Javascript
https://courses.knowthen.com/courses/functional-programming-for-beginners-with-javascript
96 stars 74 forks source link

fpjs-setup error #2

Open KanoczTomas opened 6 years ago

KanoczTomas commented 6 years ago

Hello,

when following the instructions on knowthen/fpjs-setup I get an error (tried git clone several times, getting a slightly different error every time):

user@VirtualBox:~/functional_programming$ git clone git@github.com:knowthen/fpjs.git Cloning into 'fpjs'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. user@VirtualBox:/functional_programming$ git clone git@github.com/knowthen/fpjs.git fatal: repository 'git@github.com/knowthen/fpjs.git' does not exist user@VirtualBox:~/functional_programming$ git clone git@github.com:knowthen/fpjs.git Cloning into 'fpjs'... Permission denied (publickey). fatal: Could not read from remote repository.

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

Doing git clone https://github.com/knowthen/fpjs.git works just fine. Cloning into 'fpjs'... remote: Counting objects: 246, done. remote: Compressing objects: 100% (8/8), done. remote: Total 246 (delta 1), reused 3 (delta 0), pack-reused 237 Receiving objects: 100% (246/246), 102.50 KiB | 0 bytes/s, done. Resolving deltas: 100% (125/125), done. Checking connectivity... done.

Thought I report it in case somebody else bumps to this error. Not sure what the cause is though.

marcote commented 6 years ago

@KanoczTomas the problem most probably is the SSH key configuration your are using. Make sure you uploaded your public key into Github, otherwise cloning through SSH will fail. Further info here : https://help.github.com/articles/connecting-to-github-with-ssh/

HTH

KanoczTomas commented 6 years ago

@marcote that helped. Thanks a lot! @knowthen I think this information should be included in the DEVSETUP.md file. One needs an ssh key uploaded with git to use your method, or use https.

RockinRonE commented 6 years ago

@KanoczTomas You can also get away with using: git clone https://github.com/knowthen/fpjs.git

KanoczTomas commented 6 years ago

@RockinRonE thanks for the suggestion, yeah I used https and it worked fine for me. I wanted to find out the cause of the error and to either have the correct setup mentioned on the page, or using https (which requires no ssh key import to github). I created a pull reqest #4 to address the later.