Hi Misc,

This is a rather trivial question. What is the recommended way of
starting ssh-agent when upon ssh login into the remote host. Namely I
have a remote host which is used as a gateway to a bunch of machines
whose ssh keys are password protected. I have 

AddKeysToAgent yes

in my ~/.ssh/config file as well as 

xidle -program "/usr/bin/ssh-add -D" -timeout 300  &

in my .xsession file. Everything works nice and neat when I am on my
desktop but I want to replicate functionality when I ssh to a headless
(no X) shell gateway.

Thanks,
Predrag

Reply via email to