[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh-agent, keychain, xsession bash_profile scripting



Thanks Boyd.

On Fri, 15 Jan 2010 11:31:08 -0600, Boyd Stephen Smith Jr. wrote:

> I use this for starting the daemons or connecting to existing daemons by
> setting environment variables in the current shell: eval
> "$(/usr/bin/keychain --eval --quiet --inherit any-once --stop others --
> noask --lockwait 0)"

Do you put it in your .bash_profile? 
How do you do with ~/.keychain/${HOST}-sh?

> I use this for adding keys to an existing daemon -- it doesn't change
> the environment at all:
> SSH_KEYS=('id_dsa')
> /usr/bin/keychain --inherit any-once --stop others --clear
> "${SSH_KEYS[@]}"

This is on the command line when you input ssh key, right? 
With that '--clear', do you need to input ssh key every time?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: