Other Can't get git to not ask for a password when pushing to Github.

samTopaz

New Member

Reaction score: 1
Messages: 15

Hello,

I've been trying to setup SSH keys with git so that I can push to Github without a password.
But it doesn't seem to be working.
So far I've generated a public private key pair using the command: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" (with my personal email of course.) I left the password field empty.
I've uploaded the contents of the public key file ~/.ssh/id_rsa.pub to Github and it accepted it.
After doing these things I tried to do git push but it still asked me for my password. Could this have anything to do with ssh-agent or am I missing something really obvious? I've set this up before on a raspbery pi running rasbian and it worked fine but I can't remember if I'm doing it right or not.
 

Jose

Aspiring Daemon

Reaction score: 692
Messages: 802

Did you use the HTTP URL to clone the repo? What does git remote -v report?
 

Jose

Aspiring Daemon

Reaction score: 692
Messages: 802

Yeah, those are HTTP URLs. The SSH URLs would be
Code:
git@github.com:samcdc6600/NESEmu.git
You can fix them using git remote set-url origin git@github.com:samcdc6600/NESEmu.git

You can set up HTTP URL passwords using the Git credentials store, but using SSH with a public key is better.

Edit: Whoops! I screwed that up.
 

kpedersen

Daemon

Reaction score: 1,582
Messages: 2,433

Offtopic:

Also, good luck with your project. The world always needs more NES emulators! :)

(Especially now that so many are being eaten up by RetroArch becoming far too dependent on heavy, difficult to maintain systems. Typical open-source modular monolith crap!)
 
OP
samTopaz

samTopaz

New Member

Reaction score: 1
Messages: 15

Yeah, those are HTTP URLs. The SSH URLs would be
Code:
git@github.com:samcdc6600/NESEmu.git
You can fix them using git remote set-url origin git@github.com:samcdc6600/NESEmu.git

You can set up HTTP URL passwords using the Git credentials store, but using SSH with a public key is better.

Edit: Whoops! I screwed that up.
Thanks. So I guess it was something really obvious haha :)
 
OP
samTopaz

samTopaz

New Member

Reaction score: 1
Messages: 15

Offtopic:

Also, good luck with your project. The world always needs more NES emulators! :)

(Especially now that so many are being eaten up by RetroArch becoming far too dependent on heavy, difficult to maintain systems. Typical open-source modular monolith crap!)
thanks :). I'm not sure if I'll actually be able to get it working but I'm going to try. I've got it executing some 6502 code that's supposed to test all the instructions (I've implemented maybe 50.) The code is supposed to test them but I'm not very confident their aren't bugs haha. Anyway I think if nothing else I'll proabbly be able to get the CPU working.
 
Top