Git push origin master gives permission to refuse (github)

ERROR: permission to durrantm / linker.git denied to kevinzen. fatal: the far end unexpectedly hung up

I tried many things to change / establish my identity and get rid of this "kevinzen"

Update - The final permission was that I added my public key ... but ... I missed a few characters so that it was invalid. Paste the correct key on github fixed it

I have ~/.ssh/with files

  • config
  • id_dsa
  • id_dsa.pub
  • id_kb_rsa
  • id_kb_rsa.pub
  • id_rsa
  • id_rsa.pub
  • known_hosts

I did

git config --global user.name
git config --global user.email
git remote add origin git@github.com:durrantm/linker.git

I added my local ssh key with my information (not kevinz) for this github ssh key machine.

I also tried: ssh git@github.com. The authenticity of host 'github.com. (207.97.227.239)' 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.' (RSA) to the list of known hosts. PTY allocation request failed on channel 0

was not sure about the PTY error. Still stuck.

+5
2

GitHub? ?

, GitHub, :

curl https://github.com/<username>.keys

, ? :

cat ~/.ssh/id_*.pub
+7

, . , :

git config --global user.name IceMupppet

~/.ssh/ , :

ssh-add -l

, git :

ssh-add ~/.ssh/id_IceMupppet_rsa

... a git push origin master . ssh, , - - .

+3

All Articles