<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" 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><br>
</p>
<p>Shachar</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 08/01/2022 11:06, Tzafrir Cohen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:YdlUIe5KVpxNQ3Bc@malaclypse.cohens.org.il">
<pre class="moz-quote-pre" wrap="">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>
</body>
</html>