Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub still asking for login even after ssh key exchange

my machine setup is as follows: windows 7, Git for windows,Git Bash, openSSH 1.6 installed via cygwin.

I followed the instructions on https://help.github.com/articles/generating-ssh-keys

But I still have to login in everytime I push something.

I guess my setup is messed up... any help is very much appreciated.

like image 974
goTAN Avatar asked Dec 05 '25 13:12

goTAN


1 Answers

To be able to use key-based authentication (instead of HTTP basic-auth), you have to use the SSH-Protocol. On Github, the URLs look like this:

[email protected]:username/repository.git

Once you use key authentication, you can use the common SSH tools to manage the connections. One of these tools is the SSH agent which will decrypt your private key once after loading and keep it in main memory while it is running. This allows new SSH sessions to use this key without having to bother you with a password-question.

You can add a private key to the current SSH agent session by running

ssh-add /path/to/key
like image 111
Holger Just Avatar answered Dec 07 '25 04:12

Holger Just



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!