In ~/.ssh/rc
~/.ssh/rc
if test "$SSH_AUTH_SOCK"; then ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock fi
In ~/.bashrc
~/.bashrc
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock