ssh-agent startup

Anne Wilson annew at kde.org
Fri Dec 26 13:57:00 UTC 2008


On Friday 26 December 2008 12:41:30 Guillaume wrote:
> Hi,
> For now, when I  want to use ssh-agent, i have to open a shell, and then
> use this command 'ssh-agent /bin/bash' to be able to use the ssh-agent
> fonctionnality.
>
> I would like to know if there is a tip to start ssh-agent at user login.
> Like editing /etc/passwd an adding in the "shell field" /usr/bin/ssh-agent
> /bin/bash like that :
>               ***/etc/passwd***
>               user:x:500:500::/home/user:/usr/bin/ssh-agent /bin/bash
>
> And by the way avoiding multi nested bash execution, avoid user to type
> this command or multiple edit/modify of .bashrc of all my users.
>
> thanks for your help.

Add 'eval "$(gpg-agent --daemon)" ' to your ~/.bashrc or .bash_profile

As far as I know it will work from either

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20081226/1d006f76/attachment-0001.bin 


More information about the users mailing list