I found this when I installed new gentoo 2006.0 recently. ssh-agent in current openssh-4.2_p1-r1 gave me this error. -bash: SSH_AUTH_SOCK=/tmp/ssh-WlpOOS6703/agent.6703;: No such file or directory A trailing semicolon became a part of SSH_AUTH_SOCK filename. It is trivial, but manually exporting line without semicolon everytime when I call xterm isn't fun :) I appreciate who maintains gentoo linux. This is the best linux distribution that I have ever used.
what are you trying to do exactly ? proper usage of ssh-agent is something along the lines of: eval $(ssh-agent)
The error received by the original poster is what happens when you invoke ssh-agent (incorrectly) like: `eval ssh-agent` (Notice that the backticks are in the wrong place.) The man page states that should be, instead: eval `ssh-agent` or, the equivalent: eval $(ssh-agent) I'm adding this information to the bug report, because this bug happens to be very high in the search results for "ssh_auth_sock no such file or directory." So yeah, I made the same mistake, and the answer was here (or, evidently, also in the fine manual).