Git in konsole still asking for username and password even gnome keyring working

So you don’t have ssh keys in your github account or use https instead ssh. Let’s start from begining:

  1. Create ssh key, you can specify password and key location and name (the default is ~/ssh/id_rsa), add comment or specify other options, see documentation:
ssh-keygen -c "comment"
  1. Add your key to ssh-agent
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
  1. Setup your git if you not done yet:
git config --global user.name "your github name"
git config --global user.email "your@git.email"
  1. Go to your github account settings and add key, you copy here content of ~/.ssh/id_rsa.pub file (or other if you specified other option above):
  2. Clone your github repo via ssh:
    Screenshot_20210725_105242

Gnome keyring have nothing to do here.

1 Like