native-base-cli icon indicating copy to clipboard operation
native-base-cli copied to clipboard

Permission denied (publickey).

Open agersoncgps opened this issue 7 years ago • 14 comments

$ npm install -g native-base-cli
/usr/local/bin/native-base -> /usr/local/lib/node_modules/native-base-cli/index.js
/usr/local/lib
└─┬ [email protected] 
  └─┬ [email protected] 
    ├── [email protected] 
    ├── [email protected] 
    └── [email protected] 
$ native-base init
Cloning into 'native-base-boilerplate'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

agersoncgps avatar Jul 20 '17 15:07 agersoncgps

@agersoncgps Hi are you sure you've added your ssh key to github?

sankhadeeproy007 avatar Jul 21 '17 05:07 sankhadeeproy007

can i set this to use bitbucket instead?

digitalsleep avatar Jul 26 '17 06:07 digitalsleep

@digitalsleep You can port your project to bitbucket later. But you'll need github to clone the project initially.

sankhadeeproy007 avatar Jul 26 '17 06:07 sankhadeeproy007

I'm also running into this issue. Is there any workaround?

grigy avatar Aug 10 '17 05:08 grigy

Yes. Add your public SSH key to your github account. https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

nandesu avatar Aug 10 '17 10:08 nandesu

Yes adding your ssh key to your github account is the only solution for this

SupriyaKalghatgi avatar Aug 10 '17 10:08 SupriyaKalghatgi

@nandesu, @SupriyaKalghatgi thank you!

grigy avatar Aug 11 '17 01:08 grigy

@agersoncgps @grigy Is the issue solved?

SupriyaKalghatgi avatar Aug 11 '17 05:08 SupriyaKalghatgi

I have added my public ssh key to my account still get Permission denied error!

reza7rm avatar Aug 11 '17 13:08 reza7rm

@reza7rm Thats something weird! But adding ssh key is the solution for this If you have any github projects cloned on your system, then it should be the same for this also

SupriyaKalghatgi avatar Aug 16 '17 07:08 SupriyaKalghatgi

@agersoncgps yes! and sorry for late answer

grigy avatar Aug 17 '17 06:08 grigy

I am getting

"fatal: Could not read from remote repository.

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

Even after adding the SSH Keys to my account

Should I get permission to access the repositories of nativebase??

Fixed: Ensure that your id_rsa private key file is having a 600 permission (no read write permission for group and others). And also have your passphrase of private key handy.

jkltech avatar Sep 13 '17 14:09 jkltech

i have resolved with this guide https://support.automaticsync.com/hc/en-us/articles/202357115-Generating-an-SSH-Key-on-Windows

agliottone avatar Sep 14 '17 20:09 agliottone

@sankhadeeproy007 Why not just use https://github.com/GeekyAnts/native-base-boilerplate.git instead of [email protected]:GeekyAnts/native-base-boilerplate.git?

misuzu avatar Sep 15 '17 09:09 misuzu