[xubuntu-users] Why do I have two ssh-agent processes?

Chris Green cl at isbd.net
Thu Sep 17 12:20:30 UTC 2020


On Thu, Sep 17, 2020 at 06:21:01AM -0500, Elbert LaGrew wrote:
> > 
> >    On Thu, Sep 17, 2020 at 5:20 AM Chris Green <[1]cl at isbd.net> wrote:
> > 
> >      I am running xubuntu 20.04 on two systems and they both have two
> >      ssh-agent processes running, e.g.:-
> >      chris$ ps -ef | grep ssh-agent
> >      chris       1223    1136  0 Sep16 ?        00:00:00
> >      /usr/bin/ssh-agent /usr/bin/im-launch startxfce4
> >      chris       1898    1133  0 Sep16 ?        00:00:00
> >      /usr/bin/ssh-agent -D -a /run/user/1000/keyring/.ssh
> >      chris$ ps -p 1136
> >          PID TTY          TIME CMD
> >         1136 ?        00:00:03 xfce4-session
> >      Even stranger, one of the ssh processes sets SSH_AGENT_PID and the
> >      other sets SSH_AUTH_SOCK:-
> >      chris$ env | grep SSH
> >      SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> >      SSH_AGENT_PID=1223
> >      So, how do I get rid of one of them (assuming having two is wrong)?
> >      Both appear to be started by xfce4-session.
> >      --
> >      Chris Green
> >      --
> >      xubuntu-users mailing list
> >      [2]xubuntu-users at lists.ubuntu.com
> >      Modify settings or unsubscribe at:
> >      [3]https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
> > 
>    I think BOTH are needed and BOTH are normal. Leave them alone.
>    From mine:
>     env | grep SSH
>    SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>    SSH_AGENT_PID=1712
>    --El

But without the ps showing the processes those environment variable
may well have been set by a single ssh-agent.  The problem is not that
the two variables have been set but that there are two ssh-agent
processes *both* of which should have set both those variables.

-- 
Chris Green




More information about the xubuntu-users mailing list