fish-ssh-agent
fish-ssh-agent copied to clipboard
ssh-agent keys not persisted
This might be my fault, but my ssh-agent keys are only persisted per-shell (session) on my laptop. My desktop has the same config and the keys are persisted even between reboots, and I don't know how to fix this. I thought fish-ssh-agent was supposed to reuse agents for all the shells, but it seems to launch one agent per shell, even though .ssh/environment
exists and points to the last agent spawned.
I started using keychain, but this plugin will additionally not automatically connect to keychain, it seems.
I'm sorry, it looks like none of the above have anything to do with ssh-agent. The only relevant thing is that fish-ssh-agent doesn't reuse ssh-agent on my Ubuntu 16.10 laptop.
This repo contains of about 30 lines of code. It is easy to read and modify to your needs.