<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=8137&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=8137</link>
		<description><![CDATA[The most recent posts in [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?.]]></description>
		<lastBuildDate>Wed, 05 Aug 2026 21:26:34 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65094#p65094</link>
			<description><![CDATA[<p>Ok, after some extensive googling I found the solution in the end:</p><p>In the following thread on the linux.debian.user newsgroup a Debian user asked the same question 4 years ago:<br /><a href="https://groups.google.com/g/linux.debian.user/c/nlSllKEIUVk" rel="nofollow">https://groups.google.com/g/linux.debia … lSllKEIUVk</a></p><p>After lots of trial and error he finds the solution, it&#039;s XFCE starting up both ssh-agent and gpg-agent and annoyingly this is not exposed in the &quot;Session and Startup&quot; GUI config tool of XFCE where I had already looked, it requires using xfconf-query to disable:<br /><a href="https://docs.xfce.org/xfce/xfce4-session/advanced#ssh_and_gpg_agents" rel="nofollow">https://docs.xfce.org/xfce/xfce4-sessio … gpg_agents</a></p><p>I can confirm that running the following two commands (as indicated in the above XFCE docs link) prevents ssh-agent and gpg-agent from being started automatically by XFCE:</p><div class="codebox"><pre><code>xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Wed, 05 Aug 2026 21:26:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65094#p65094</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65093#p65093</link>
			<description><![CDATA[<p>on my system :</p><div class="codebox"><pre class="vscroll"><code>pstree -c | grep -B40 ssh-agent
     |          `-{libvirtd}
     |-lightdm-+-Xorg-+-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      |-{Xorg}
     |         |      `-{Xorg}
     |         |-lightdm-+-x-session-manag-+-at-spi-bus-laun-+-dbus-daemon
     |         |         |                 |                 |-{at-spi-bus-laun}
     |         |         |                 |                 |-{at-spi-bus-laun}
     |         |         |                 |                 `-{at-spi-bus-laun}
     |         |         |                 |-caja-+-{caja}
     |         |         |                 |      |-{caja}
     |         |         |                 |      `-{caja}
     |         |         |                 |-marco-+-{marco}
     |         |         |                 |       |-{marco}
     |         |         |                 |       `-{marco}
     |         |         |                 |-mate-panel-+-mate-terminal-+-zsh---su---zsh-+-grep
     |         |         |                 |            |               |                `-pstree
     |         |         |                 |            |               |-{mate-terminal}
     |         |         |                 |            |               |-{mate-terminal}
     |         |         |                 |            |               `-{mate-terminal}
     |         |         |                 |            |-{mate-panel}
     |         |         |                 |            |-{mate-panel}
     |         |         |                 |            `-{mate-panel}
     |         |         |                 |-mate-screensave-+-{mate-screensave}
     |         |         |                 |                 |-{mate-screensave}
     |         |         |                 |                 `-{mate-screensave}
     |         |         |                 |-mate-settings-d-+-{mate-settings-d}
     |         |         |                 |                 |-{mate-settings-d}
     |         |         |                 |                 |-{mate-settings-d}
     |         |         |                 |                 |-{mate-settings-d}
     |         |         |                 |                 |-{mate-settings-d}
     |         |         |                 |                 `-{mate-settings-d}
     |         |         |                 |-ssh-agent</code></pre></div><p>after closing firefox there was a reasonable display<br />The clue is in this line _</p><div class="codebox"><pre><code>lightdm-+-x-session-manag-+-at-spi-bus-laun-+-dbus-daemon</code></pre></div><p>The vertical bars originate from x-session-manag-+-at-spi-bus-laun<br />one of the two<br />Good luck<br />YMMV</p>]]></description>
			<author><![CDATA[dummy@example.com (bai4Iej2need)]]></author>
			<pubDate>Wed, 05 Aug 2026 21:21:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65093#p65093</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65092#p65092</link>
			<description><![CDATA[<p>In your initial post it wasn&#039;t clear that you use ssh. I thought a fast look at the installed packages might give an entry point. Don&#039;t know why it doesn&#039;t work on your system. My experience: typos cause empty output. </p><p>When you use ssh: can&#039;t help with diabling the agent. Sorry, its your game.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:40:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65092#p65092</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65091#p65091</link>
			<description><![CDATA[<p>@rolfie that command doesn&#039;t work on my system, it runs and then returns to the command prompt without any output.</p><p>But it doesn&#039;t matter, like I said /usr/bin/ssh-agent is included in the openssh-client package which I do have installed and cannot uninstall as I use ssh all the time. But ssh-agent is not required to use the ssh client, it&#039;s 100% optional.</p><p>So back to my original question, <strong>what is starting up ssh-agent and gpg-agent during X11 session startup?</strong><br />This is what I&#039;m trying to find out, nothing else.</p><p>BTW, the following command gives me the output you were looking for:</p><div class="codebox"><pre><code>$ apt list -i |grep ssh

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libssh-4/stable,now 0.11.2-1+deb13u1 amd64 [installed,automatic]
libssh-4/stable,now 0.11.2-1+deb13u1 i386 [installed,automatic]
libssh2-1t64/stable,stable-security,now 1.11.1-1+deb13u1 amd64 [installed,automatic]
libssh2-1t64/stable,stable-security,now 1.11.1-1+deb13u1 i386 [installed,automatic]
openssh-client/stable,now 1:10.0p1-7+deb13u4 amd64 [installed]
$</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:36:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65091#p65091</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65089#p65089</link>
			<description><![CDATA[<p>This is what I get on my system, Excalibur with Cinnamon DE, openssh-server is installed. Can be run in a user console. root permisson not required. It lists the installed packages that contain the string ssh.</p><div class="codebox"><pre><code>$ apt list -i *ssh*
libssh-4/stable,now 0.11.2-1+deb13u1 amd64  [Installiert,automatisch]
libssh2-1t64/stable,stable-security,now 1.11.1-1+deb13u1 amd64  [Installiert,automatisch]
openssh-client/stable,now 1:10.0p1-7+deb13u4 amd64  [Installiert,automatisch]
openssh-server/stable,now 1:10.0p1-7+deb13u4 amd64  [installiert]
openssh-sftp-server/stable,now 1:10.0p1-7+deb13u4 amd64  [Installiert,automatisch]</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:31:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65089#p65089</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65088#p65088</link>
			<description><![CDATA[<p>@rolfie What is that command supposed to do, I get no output from it?</p><p>I do have the openssh-client package installed (/usr/bin/ssh-agent is included in this package) and I use ssh all the time, but I have no use for ssh-agent.</p><p>The ssh-agent weakens ssh security and can be a real security risk: <br /><a href="https://medium.com/@bornaly/why-i-always-disable-ssh-agent-forwarding-on-linux-and-how-attackers-steal-your-keys-through-it-52c52573fa2f" rel="nofollow">https://medium.com/@bornaly/why-i-alway … c52573fa2f</a></p><p>@greenjeans in this thread I would like to find out <strong>what starts them in the first place so that I can disable them</strong>, I can always re-enable them once I know how to disable them (in case I need them).</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:28:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65088#p65088</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65087#p65087</link>
			<description><![CDATA[<p>Well it may be that some other things need one or both of those things running, i&#039;d definitely look into that before shutting them down.</p><p>But just spitballing here seems like you could add a couple lines to ~/.xsessionrc to stop them from starting on login.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:28:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65087#p65087</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65085#p65085</link>
			<description><![CDATA[<p>Well I would think about a ssh package first of all. </p><div class="codebox"><pre><code>apt list -i *ssh*</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:22:38 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65085#p65085</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] How do I disable ssh-agent and gpg-agent from starting automatically?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65084#p65084</link>
			<description><![CDATA[<p>I noticed <strong>ssh-agent</strong> and <strong>gpg-agent</strong> are running in the background on my <strong>Devuan Excalibur XFCE</strong> PC, since I have no need for them and I dislike having stuff running in the background that I don&#039;t need (no matter how small their RAM or CPU footprint) I tried to figure out where they get started from and how to disable them.</p><p>By doing a grep for ssh-agent and gpg-agent in /etc I found the following files:</p><p><strong>/etc/X11/Xsession.options</strong><br />contains a config option &quot;use-ssh-agent&quot; which I commented out, and after that made no difference I replaced the line with &quot;no-use-ssh-agent&quot; (as indicated in the man page), which also had no effect.</p><p><strong>/etc/X11/Xsession.d/90x11-common_ssh-agent</strong><br />this script starts up ssh-agent providing the config option &quot;use-ssh-agent&quot; has been set.<br />I tried commenting out all the lines of the script but that made no difference, ssh-agent still starts up after a reboot or relogin.</p><p><strong>/etc/X11/Xsession.d/90gpg-agent</strong><br />this script seems to be made to start up gpg-agent.<br />I tried commenting out all the lines of the script but that made no difference, gpg-agent still starts up after a reboot or relogin.</p><p>I also looked in the &quot;<strong>Session and Startup</strong>&quot; GUI config tool of <strong>XFCE</strong> but there is no reference to ssh-agent (other than a &#039;SSH Key Agent&#039; part of &#039;GNOME Keyring&#039;, but I had already unticked this) or gpg-agent.</p><p>So I&#039;m at my wits end, what the heck is starting up ssh-agent and gpg-agent during X11 session startup?</p>]]></description>
			<author><![CDATA[dummy@example.com (tux_99)]]></author>
			<pubDate>Wed, 05 Aug 2026 20:10:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65084#p65084</guid>
		</item>
	</channel>
</rss>
