GitHub Permission Denied (publickey)
I’ve been trying to do this but this is what is happening every time I try to clone this.
C:\Users\Cod>git clone firstname.lastname@example.org:MiniCodeMonkey/Vagrant-LAMP-Stack.git Cloning into 'Vagrant-LAMP-Stak'... The authenticity of host 'github.com (220.127.116.11)' 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,18.104.22.168' (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.
2 Solutions collect form web for “GitHub Permission Denied (publickey)”
An ssh url means:
- you have created a public and private ssh keys locally (in your
%HOME%\.sshfolder, make sure that
- you have registered that public key in your github ssh setting section
If you didn’t created any ssh key, then as commented, you can try instead using the https url, which doesn’t require any authentication (for cloning at least)
git clone https://github.com/MiniCodeMonkey/Vagrant-LAMP-Stack
You need to use the https URL (https://github.com/…someThing). Using the one you used only works when you have push access to the repository.