<div class="gmail_quote">2008/12/29 Aldo Foot <span dir="ltr"><<a href="mailto:lunixer@gmail.com">lunixer@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Fri, Dec 26, 2008 at 4:41 AM, Guillaume <<a href="mailto:guillaume.chardin@gmail.com">guillaume.chardin@gmail.com</a>> wrote:<br>
> Hi,<br>
> For now, when I  want to use ssh-agent, i have to open a shell, and then use<br>
> this command 'ssh-agent /bin/bash' to be able to use the ssh-agent<br>
> fonctionnality.<br>
><br>
> I would like to know if there is a tip to start ssh-agent at user login.<br>
> Like editing /etc/passwd an adding in the "shell field" /usr/bin/ssh-agent<br>
> /bin/bash like that :<br>
>               ***/etc/passwd***<br>
>               user:x:500:500::/home/user:/usr/bin/ssh-agent /bin/bash<br>
><br>
> And by the way avoiding multi nested bash execution, avoid user to type this<br>
> command or multiple edit/modify of .bashrc of all my users.<br>
><br>
> thanks for your help.<br>
><br>
> --<br>
> Guillaume<br>
<br>
</div></div>Boot the system in Run Level 3.<br>
After you login in text mode run<br>
     $ ssh-agent `exec startx`<br>
The dollar sign is the user prompt. Use backticks.<br>
<br>
This makes the agent available to the entire user environment. Load your<br>
keys and you're good to go.<br>
~af<br>
<font color="#888888"><br>
</font></blockquote></div>Thanks for your reply, <br>but my system does not use any graphical interface. So, i have to find a way to run a bash session "aware of" ssh-agent. The previous tips from Anne is ok, but when user disconnect their session, the sshagent process is not  killed. Now, i need to find a global config file equivalent of bash_logout by this way i'll be able to set a command like "ssh-agent -k" to all my users. Without editiing each ~/.bash_logout.<br>
But if i don't find i will create a small script to add a line like this automaticaly.<br><br>Happy new year :-D<br>-- <br>Guillaume<br>