I've had good luck making sure that my entire session runs under ssh-agent - before the days of ubiquitous desktop managers and login panels, I just ran 'ssh-agent startx'. Then one 'ssh-add' was good for the duration of my xwin session, including suspends. I think modern login panels/managers do this for you? I no longer ssh out of my linux machines very often so I haven't tried this in...years.
Other options if you don't trust your laptop is running 'ssh-agent screen' or 'ssh-agent tmux' on a remote "bastion" host that you enforce secure login to, and then you can reconnect to that session to Do The Thing, rather than carrying around a loaded gun, you just have one set up in a safe somewhere allready... On Thu, Mar 30, 2017 at 2:16 PM, Galen Seitz <[email protected]> wrote: > On 03/30/17 13:12, Rich Shepard wrote: > > My laptops are not always on. When I do fire up one and want to > exchange > > files with the desktop each transaction requires my typing my passphrase. > > Can I add ssh-agent and ssh-add to ~/.bash_profile so I need type the > > passphrase only once after booting a host? > > I don't recall the details, but I believe I'm using some part of the > GNOME keyring manager here. After logging in, the first attempt to use > ssh will pop up a window asking for my passphrase. All subsequent use > of ssh does not require the passphrase. > > My desktop is XFCE, but I have the appropriate GNOME pieces installed to > make this work. What those pieces are, I don't remember. It's been a > while since I set it up. > > > galen > -- > Galen Seitz > [email protected] > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
