recover ssh-agent socket

recover ssh-agent socket

Tzafrir Cohen tzafrir at cohens.org.il
Sat Jan 8 15:06:25 IST 2022


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 -> /dev/null
lrwx------ 1 root root 64 Jan  8 15:00 3 -> 'socket:[14326]'


> >   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?

Also, to answer Uri:

Because it's there.

-- 
mail / xmpp / matrix: tzafrir at cohens.org.il



More information about the Linux-il mailing list