[PLUG] Using ssh-agent and ssh-add

chris (fool) mccraw gently at gmail.com
Thu Mar 30 22:01:55 UTC 2017


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 <galens at seitzassoc.com> 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
> galens at seitzassoc.com
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list