ssh-agent running on my desktop, and it works normally. That means I can use my ssh key without password.
When I connect to my desktop via ssh, I suddenly cannot use my ssh-agent - ssh asks me for password.
I can see with
ssh-agent is running.
When I do
eval $(ssh-agent -s) && ssh-add, it will ask me for password and
ssh-agent will work in current ssh session. As soon as I log out, and log in again, it no longer works.
Also, I see with
ps that it has started new instance of
ssh-agent. So I have multiple instances running.
Why does the agent not work when i connect via ssh? Why do I have to start new one each time?
I am using
1:7.9p1-10+deb10u2 on Debian 10, which is on both the client and server.