Help with ssh-agent - global environment
I am trying to configure ssh-agent at login and am having some problems. What I would like to do is have it so when I use ssh-add, the user added is valid from any term/bash session. More directly, I would like to have a launcher button on GkrellM execute a program on another box.
The problem I am having is getting the agent global. I tried adding it to my /etc/rc.d/rc.local. This caused bash some problems and gave me a no job something or other and a bash prompt on boot up. I then tried adding it to my .bashrc file. This did some bad things. I ended up in an endless loop when I tried to log in creating hundreds of ssh-agent threads and /bin/bash threads.
What I tried to add is: ssh-agent $SHELL. This may be wrong. Could someone please tell me what I need to do to get the agent global so I don't have to ssh from the same term window each time.