On Sat, 8 Jan 2022, 13:24 Shachar Shemesh, <shac...@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@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to