Hello,

i was trying to setup my ssh-agent on andLinux, and was looking for a simple solution, so i couldnt find it anywhere online,and decided to create this mini guide for it, just in case someone is seeking help with this:

1. open terminal (or konsole)
2. open /usr/bin/X11/startwindowsterminalsession as root:
sudo vi /usr/bin/X11/startwindowsterminalsession
3. add this at the end of /usr/bin/X11/startwindowsterminalsession
su YOUR_USER_ID_HERE -c '/usr/bin/ssh-agent > /tmp/ssh_agent_output'
chmod 755 /tmp/ssh_agent_output
4. save and exit from /usr/bin/X11/startwindowsterminalsession
5. as your own user, open .bashrc
vi ~/.bashrc
6. add this to the end of the file
. /tmp/ssh_agent_output
7. save and exit
8. reboot andLinux (sudo shutdown -r now)

=================================

now you will have your ssh-agent running, and environment variables will be set every time correctly, you will also have a single user agent for all of your sessions, so you will just have to do ssh-add ones.

hope that helps.
-winfinit