Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Backgrounding part of 'ssh-agent $cmd'



On Wed, Jan 16, 2013 at 1:44 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Christian Neukirchen wrote on Wed, Jan 16, 2013 at 12:08:42 +0100:
>> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> writes:
>>
>> > I'd like to remove the complication of an extra tab or explicit ^Z:
>> > I'd like the workflow to be
>> >
>> >     Run foo_main
>> >     Answer ssh-add password prompt
>> >     # No interactive wait at this point.
>> >     Answer the foo_internal password prompt
>> >     (Use foo; the -MNf's will finish in a second or two.)
>>
>> FYI, if you use gpg-agent or gnome-keyring instead of ssh-agent, it will
>> ask for the password interactively/graphically when it's needed the
>> first time.
>
> I don't want to use a daemon that maintains state across hibernate.[1]
> Does ssh-agent/gpg-agent/gnome-keyring have a "discard passphrase before
> entering hibernate" feature?

You could run ssh-add -D after everything is connected, or in a
pm-suspend hook.  (I enable my screensaver before suspend/hibernate
and remove keys on screensaver activation:
http://chneukirchen.org/dotfiles/bin/xscreensaver-ssh-helper)

-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



Messages sorted by: Reverse Date, Date, Thread, Author