Results 1 to 3 of 3

Thread: Where is ssh-agent launched on 13.1 with KDE

  1. #1

    Question Where is ssh-agent launched on 13.1 with KDE

    I want to use GnuPG’s ssh-agent implementation, so I need to find a way to not have ssh-agent launched with KDE.

    How does ssh-agent get launched?
    Code:
    $ ps -eF |grep ssh
    user    2124  2017  0  2697   688   1 Mar07 ?        00:00:00 /usr/bin/ck-launch-session /usr/bin/gpg-agent --sh --daemon --write-env-file /home/user/.gnupg/agent.info /usr/bin/ssh-agent /etc/X11/xinit/xinitrc
    user    2272  2271  0  4264  1000   0 Mar07 ?        00:00:09 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/user/.gnupg/agent.info /usr/bin/ssh-agent /etc/X11/xinit/xinitrc
    user    2274  2271  0  3141   500   2 Mar07 ?        00:00:01 /usr/bin/ssh-agent /etc/X11/xinit/xinitrc
    The parent PID 2271 points to startkde, in which I could only find a comment recommending to start ssh-agent and gpg-agent via a script in /usr/share/kde4/env or ~/.kde4/env but no luck there. Also, ck-launch-session seems to be part of ConsoleKit, I thought that had been phased out?

    What am I missing? Thanks!

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,685
    Blog Entries
    3

    Default Re: Where is ssh-agent launched on 13.1 with KDE

    Quote Originally Posted by lorenzo3000 View Post
    How does ssh-agent get launched?
    [CODE]
    I'm not sure.

    I seem to recall that it was launched in "startkde", but that would have been for opensuse 11.4 or thereabouts.

    For what you want to do, I don't think it matters. I'm pretty that your ".profile" is run before anything else in the session (or your ".cshrc" and ".login" if you are a "csh" user).

    Try starting "gpg-agent" there, with the parameters for it to handle ssh-agent requests. And then, if they did it right, whatever normally starts "ssh-agent" and "gpg-agent" will note that it is already running and not start another.

    That's at least worth trying.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Where is ssh-agent launched on 13.1 with KDE

    On 2014-03-13 14:36, lorenzo3000 wrote:
    >
    > I want to use GnuPG’s ssh-agent implementation, so I need to find a
    > way to not have ssh-agent launched with KDE.
    >
    > How does ssh-agent get launched?


    Have a look at "sytemsettings", section "startup and shutdown".
    Apparently it controls what is started automatically.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •