Git asks for ssh password all the time

sshd is not the same as ssh-agent

https://wiki.archlinux.org/title/SSH_keys

You need to start the ssh-agent together with your gui, so it is persistent between terminal sessions.

This depends on the DE you use.


  1. Please read the information behind this link. It will help you to post necessary information.
  1. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
sudo inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.

Have you already :mag: for your problem in the forum ? (Wisdom lies in asking → listening → reading :wink: )


What does printenv tell ?

printenv|grep ssh
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXxQxL95/agent.1918537
SSH_KEY_PATH=~/.ssh/rsa_id