Re: ssh-agent autostarting

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



>     I'm trying to get public key authentication working on a client to
> server connection so i can drop passwords. I've got the keys in place and
> confirmed they are working. I'm now trying to set up ssh-agent, I read i can
> do it manually i was looking for a more automated method for users on login.
> This is not through a gui.

I use this personaly in my .bash_profile:

AGENTRUNNING=`ps x | grep agent | grep -v grep`
if [ -z "$AGENTRUNNING" ]; then
  /usr/bin/ssh-agent -s > $HOME/.ssh/agent-env.sh
fi
.. $HOME/.ssh/agent-env.sh > /dev/null

And then use ssh-add to add keys...

JD


      

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux