On Thu, Jun 14, 2001 at 02:34:57PM -0000, Keith Ives wrote:
> I want to get ssh-agent started, and prompted 1 time to ssh-add the passphrase.
>Running openssh 2.9p1 on Solaris 2.7 (cde 1.3).
> I have exhausted experimenting with numerous solutions found searching the net. The
>closest I've come is getting the agent started but every shell wants the
>passphrase... instead of a 1-time prompt to satisfy entire session.
I have the following setup (HP-UX 10.20):
- In .dtprofile start ssh-agent on login
eval `/usr/local/openssh/bin/ssh-agent -s`
This way all processes started from CDE inherit the necessary environment
variables.
- In .dt/sessions/sessionetc ask for the passphrase(s):
/usr/local/openssh/bin/ssh-add $HOME/.ssh/identity $HOME/.ssh/id_dsa
$HOME/.ssh/id_rsa < /dev/null&
- In .dt/sessions/sessionexit shut down ssh-agent on logout:
/usr/local/openssh/bin/ssh-agent -k
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153