GitHub Permission Denied (publickey)

I tried to do this, but this is what happens every time I try to clone it.

C:\Users\Cod>git clone git@github.com :MiniCodeMonkey/Vagrant-LAMP-Stack.git Cloning into 'Vagrant-LAMP-Stak'... The authenticity of host 'github.com (192.30.252.128)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of know n hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 
+7
git github permissions denied
source share
3 answers

The ssh icon means:

If you did not create any ssh key, then, as indicated in the comment, you can instead use https url, which does not require any authentication (for cloning, at least)

 git clone https://github.com/MiniCodeMonkey/Vagrant-LAMP-Stack 
+5
source share

I had a similar problem and I finally solved it.

My decision:

First, follow the instructions here to check the existing key for Github and create one if one does not exist. Do not copy or paste the code, carefully read the instructions, because there is a code that you must change and configure.

By the way, at this stage I had problems trying to change the ~ / .ssh / id_rsa file, but it turned out that it does not really matter. However, if you really want to save your SSH key and not enter it every time you press and pull, you can go to your .ssh directory and make the "config" file useful "nano" and enter the following:

 Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_rsa 

Secondly, copy your SSH key to the clipboard. This step is mentioned, but not shown in the detailed step, my way of doing this is:

 cd ~ ls -a cd .ssh cat id_rsa.pub 

I'm sure there should be better ways, but they do not work for me, perhaps because I had problems opening a text editor in git.

Third, add the key you just created to your Github account.

If you do all this, your git may work just as well as mine.

All links from: https://help.github.com/articles/connecting-to-github-with-ssh/#generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

+1
source share

You need to use https URL ( https://github.com/...someThing ). Using the one you used only works when you click on access to the repository.

0
source share

All Articles