Skip site navigation (1)Skip section navigation (2)
Date:      24 Jun 1999 09:44:33 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Wes Peters <wes@softweyr.com>
Cc:        jj@cybernex.net.au, freebsd-security@FreeBSD.ORG
Subject:   Re: ssh web site..sorry fixed
Message-ID:  <xzpaetqf3fi.fsf@flood.ping.uio.no>
In-Reply-To: Wes Peters's message of "Wed, 23 Jun 1999 20:07:34 -0600"
References:  <199906230236.MAA23311@cybernex.net.au> <199906231054.UAA29847@cybernex.net.au> <377192E6.2EB82B02@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Wes Peters <wes@softweyr.com> writes:
> 2.  Make sure that you run ssh-agent before running other
>     applications.  X users, for example, usually do this from their
>     .xsession file.  See ssh-agent(1) for details.

A good way of achieving this is to put the following in your
.xsession:

echo '
# Prompt for passphrase
ssh-add </dev/null
# Start a bunch of xterms and emacsen
xterm -geometry +0-0 &
emacs -geometry -0+0 &
# Start your window manager
exec fvwm2
' | exec ssh-agent sh

You may want to replace 'sh' on the last line with a suitable
incarnation of your regular shell (e.g. 'zsh -l') to make sure your
window manager inherits a correct environment (PATH etc.)

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpaetqf3fi.fsf>