LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   publickey fails, denied access to git push (https://www.linuxquestions.org/questions/linux-networking-3/publickey-fails-denied-access-to-git-push-928593/)

Siljrath 02-09-2012 11:43 PM

publickey fails, denied access to git push
 
okies, time to write out this as a question, see if i can clarify my situation to myself n find a solution, or at least then have a presentable question for other peeps to be able to help me with.

so, in general, what i'm doing is putting my witchcraft script up on git.

i had an oooold key there [on my github account] with a passphrase i'd long forgotten... so trying to put up a new key... this has not been going well.

when i try to push. ( git push -u origin master ) i keep getting:

Code:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly


most unpleasant


i've tried new dsa and rsa keys, i've tried putting in a specific ~/.ssh/config telling git where it's special key is. like so:


Code:

Host github.com HostName github.com
User git
IdentityFile /home/user/.ssh/id_rsa_github


... no joy. where am i going wrong?

i ssh-keygen a key, i paste the .pub key contents into the appropriate section on github with some name to help me remember which key that is... what else is there that i'm missing?

i've even tried deleting all keys from github, and moving all my keys on my computer to a bkp dir, so i have a clean slate, and still:

Code:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Code:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Code:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

unexpectedly indeed. or at least it was early on. now i kinda expect it when it's unexpected [when it 'should' 'just work'].

at least when it was the one i've forgotten the passphrase to, i felt like i was closer, in that i just kept having to try to remember what passphrase i'd have used. :/ heelp! ^_^

OH! it's not that bloody type1 and type2 thing is it? :O

ok, yeah, i'm lost, i'm posting this as is.

much thnx to any techno mage who helps get me pushing to git. :)

i'll be watching this one closely. incase it slips my attention, or if you want to get my attention faster, i'm in #witchlinux on irc.freenode.net. much thnx.

Siljrath 02-10-2012 03:50 AM

egg on face.

it seems after incrementally trying a number of things, it turns out, or it seems at least... i just wasnt pasting it in correctly. *facepalm* (thnx for your help jb)


All times are GMT -5. The time now is 06:33 AM.