Re: recover ssh-agent socket

2022-01-08 Thread Daniel Shahaf
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?

Re: recover ssh-agent socket

2022-01-08 Thread Shachar Shemesh
On 09/01/2022 04:13, shimi wrote: On Sat, 8 Jan 2022, 13:24 Shachar Shemesh, wrote: You can probably find it under

Re: recover ssh-agent socket

2022-01-08 Thread shimi
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

Re: recover ssh-agent socket

2022-01-08 Thread guy keren
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

Re: recover ssh-agent socket

2022-01-08 Thread Tzafrir Cohen
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 ->

Re: recover ssh-agent socket

2022-01-08 Thread Shachar Shemesh
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

Re: recover ssh-agent socket

2022-01-08 Thread אורי
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

recover ssh-agent socket

2022-01-08 Thread Tzafrir Cohen
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 /