How do I stop ssh-agent from starting when logging into CentOS via openssh?
There are no references to ssh-agent in my bash startup scripts (.bashrc) or /etc/bashrc.
It is probably started for your gnome session. To get the parent id of your ssh-agent:
cat /proc/$SSH_AGENT_PID/status | fgrep PPid
Then use the number there to look at what process that is:
On Ubuntu 12.04 you find in the first line
You will probably find something under
grep ssh-agent /etc/X11/*
try commenting that out en restarting X