recover ssh-agent socket

recover ssh-agent socket

shimi linux-il at shimi.net
Sun Jan 9 04:13:45 IST 2022


On Sat, 8 Jan 2022, 13:24 Shachar Shemesh, <shachar at shemesh.biz> wrote:

> You can probably find it under /proc/$SSH_AGENT_PID/fd.
>
>
> 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?
>
> 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...

-- Shimi

>
> Shachar
>
>
> On 08/01/2022 11:06, Tzafrir Cohen wrote:
>
> 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.
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20220109/57ba4449/attachment-0001.html>


More information about the Linux-il mailing list