fish-ssh-agent icon indicating copy to clipboard operation
fish-ssh-agent copied to clipboard

ssh-agent keys not persisted

Open skorokithakis opened this issue 8 years ago • 3 comments

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.

skorokithakis avatar Feb 14 '17 18:02 skorokithakis

I started using keychain, but this plugin will additionally not automatically connect to keychain, it seems.

skorokithakis avatar Feb 15 '17 16:02 skorokithakis

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.

skorokithakis avatar Feb 15 '17 16:02 skorokithakis

This repo contains of about 30 lines of code. It is easy to read and modify to your needs.

ivakyb avatar Aug 01 '18 20:08 ivakyb