Tzafrir Cohen wrote on Sat, 08 Jan 2022 09:06 +00:00:
> 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?
On 09/01/2022 04:13, shimi wrote:
On Sat, 8 Jan 2022, 13:24
Shachar Shemesh,
wrote:
You can probably find it under
On Sat, 8 Jan 2022, 13:24 Shachar Shemesh, 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
On 1/8/22 3:06 PM, Tzafrir Cohen wrote:
On Sat, Jan 08, 2022 at 01:24:18PM +0200, Shachar Shemesh wrote:
You can probably find it under /proc/$SSH_AGENT_PID/fd.
I see there:
lrwx-- 1 root root 64 Jan 8 15:00 0 -> /dev/null
lrwx-- 1 root root 64 Jan 8 15:00 1 -> /dev/null
On Sat, Jan 08, 2022 at 01:24:18PM +0200, Shachar Shemesh wrote:
> > You can probably find it under /proc/$SSH_AGENT_PID/fd.
I see there:
lrwx-- 1 root root 64 Jan 8 15:00 0 -> /dev/null
lrwx-- 1 root root 64 Jan 8 15:00 1 -> /dev/null
lrwx-- 1 root root 64 Jan 8 15:00 2 ->
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?
Shachar
On
Is there a reason not to restart?
אורי
u...@speedy.net
On Sat, Jan 8, 2022 at 11:07 AM 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
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.
--
mail /