Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Backgrounding part of 'ssh-agent $cmd'
- X-seq: zsh-workers 30980
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Backgrounding part of 'ssh-agent $cmd'
- Date: Wed, 16 Jan 2013 14:50:37 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=fmoEY2n1ulP628kZD/5P/XXc2GcIKx9h9ax6P7jFU84=; b=DI6jXIJADmocPAAfzsFB+S9FpKSAWSShyLVS86TOlfDT7fCl3rXjMix0DNGkJVPeJy YtbkdbZI1G8dkv428yRwZv34UCfG3r8s6XF4iVVLl0ynuUIMQSuHkdR1TMXZplxNfOXf wTHbGzmTmLUgiojrb1vRjkxVRxMGseoL7Rr8KORX32uggjdLk5ItGePhe/Ww2CWKf4lj B0Yq++zQCsbI8XBTcEBa+ACMhlQs5PF0+PhJ86SSB8rUElQ1WlxrWq6PQ+AfMWDy8BC4 jMqMxIsGsntVN122T+mG89MWa7h8qusnO8xEiMYB9Cac0DpaMoyfoSwHnQn/bDPzeMPe RBzQ==
- In-reply-to: <20130116124316.GA3852@lp-shahaf.local>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20130116065951.GA2992__1394.41746655411$1358320461$gmane$org@lp-shahaf.local> <87wqvdcrlx.fsf@gmail.com> <20130116124316.GA3852@lp-shahaf.local>
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