<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 8 Jan 2022, 13:24 Shachar Shemesh, <<a href="mailto:shachar@shemesh.biz">shachar@shemesh.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr">
<p>You can probably find it under /proc/$SSH_AGENT_PID/fd.</p>
<p><br>
</p>
<p>With that said, I'm not sure whether that brings you any closer
to recovering it. Maybe a move (the syscall, not the command line)
from there to $SSH_AUTH_SOCK?</p>
<p></p></div></blockquote></div></div><div dir="auto">Wouldn't ln -s /proc/$SSH_AGENT_PID/fd/<socket fd> $SSH_AUTH_SOCK achieve the /purpose/ of the OP (even if without actually creating a socket file)? Assuming I understand correctly the purpose...</div><div dir="auto"><br></div><div dir="auto">-- Shimi</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="direction:ltr"><p><br>
</p>
<p>Shachar</p>
<p><br>
</p>
<div>On 08/01/2022 11:06, Tzafrir Cohen
wrote:<br>
</div>
<blockquote type="cite">
<pre>Hi,
I accidentally deleted my ssh-agent's socket from /tmp. The agent is
still running and I have $SSH_AGENT_PID and $SSH_AUTH_SOCK set in
various processes, so I know where it should have been.
Is there any way to recover the socket? Short of restarting the X
session, of course.
</pre>
</blockquote>
</div>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank" rel="noreferrer">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer noreferrer" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div></div></div>