Re: ssh-agent fails to hold values

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



From: bluethundr <bluethundr@xxxxxxxxx>

> I am attempting to manage my key logins with ssh-agent.  However EVERY
> time I try to ssh I have to go through the same exact routing  and it's
> getting a little old...
> Does  anyone have any suggestions to make ssh-agent hold these values a
> bit more  persistently?

I have this 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

Then, I ssh-add once and that's it.

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