[NFBCS] Questions about ssh-agent and ssh-ad

Brian Buhrow buhrow at nfbcal.org
Fri Feb 21 14:20:31 UTC 2025


	Hello.  This is a question for those of you who make use of openssh and its various
features. 
Recently, I've started using ssh-agent and ssh-add to add private keys to access my work
environment.  I run ssh-agent on my source machine and, when I log into that machine, ssh-agent
is started.  At this point I can add keys to ssh-agent's list of keys with the ssh-add command.
All of that works fine and does exactly what I expect.  However, when I log out, or if  I
reboot my source machine, ssh-agent terminates, to be started the next time I log into that
machine.  The problem is that all the keys I added to ssh-agent are now gone and I must re-add
them with ssh-add.  

	Is there a way to make keys stored with ssh-agent persistent across reboots and login
sessions?  I find it highly surprising that people consider using ssh-agent a time saver if
they have to keep adding keys every time they restart ssh-agent for what ever reason.  So, I
must be missing something. Anyone here have ideas?

-thanks
-Brian



More information about the NFBCS mailing list