Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 131

Why is ssh-agent.service running, but when I use ssh-add I get an error connecting to the agent? [closed]

$
0
0

The ssh-agent service is enabled for the user and is running without errors. (status is active).
But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I don't understand why this is happening. Earlier ssh used to work right away and I could connect to the server via my key, but now I wanted to connect and I get the error Permission denied (public key), then I tried to add it via ssh-add and I get this.
enter image description here

I googled how to fix it, and found a solution eval $(ssh-agent -s), but it only works for bash, and I'm using fish, and there I googled that you have to set environment variables manually, and then you have to do it every time, it used to work. I googled how to get it to run on its own, and googled that I need to enable the ssh-agent daemon, but I already enabled it and it works, but the error is still there, even if I run bash, same error.

System: Arch linux


Viewing all articles
Browse latest Browse all 131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>