danhper / fish-ssh-agent

329 stars 50 forks source link

ssh-agent keys not persisted #5

Open skorokithakis opened 7 years ago

skorokithakis commented 7 years ago

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 commented 7 years ago

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

skorokithakis commented 7 years ago

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.

ivakyb commented 6 years ago

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