<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Feature Request — Automatic Root SSH Authentication for FOS Debug Tasks]]></title><description><![CDATA[<p dir="auto">Hi Tom,</p>
<p dir="auto">I would like to suggest an improvement to the existing SSH functionality in FOS Debug Mode.</p>
<p dir="auto">While working on IPv6 PXE, NFS, and multicast troubleshooting, I frequently need remote SSH access to physical computers running FOS Debug tasks.</p>
<ol>
<li>Current behavior</li>
</ol>
<p dir="auto">I checked the FOS source code and confirmed that OpenSSH Server is already included.</p>
<p dir="auto">The current sshd_config contains:</p>
<p dir="auto">PermitRootLogin yes<br />
PasswordAuthentication yes</p>
<p dir="auto">Therefore, there is no need to install or implement another SSH server.</p>
<p dir="auto">The actual problem is that the root account does not have a known, usable password for remote login.</p>
<p dir="auto">Currently, after starting a Debug Deploy or Debug Capture task, I have to physically visit the computer, set a password using passwd, and only then connect remotely.</p>
<p dir="auto">This becomes especially inconvenient when troubleshooting multiple computers.</p>
<ol start="2">
<li>Proposed functionality</li>
</ol>
<p dir="auto">Could FOG automatically configure root SSH authentication when a FOS Debug task starts?</p>
<p dir="auto">For example, in my isolated FOG Mobile testing environment, I would like to connect using:</p>
<ul>
<li>Username: root</li>
<li>Password: password (example for a controlled lab)</li>
<li>SSH port: 22</li>
</ul>
<p dir="auto">Immediately after the computer enters Debug Mode, I should be able to connect using:</p>
<p dir="auto">ssh <a href="mailto:root@192.168.0.100" target="_blank" rel="noopener noreferrer nofollow ugc">root@192.168.0.100</a></p>
<p dir="auto">Or over IPv6:</p>
<p dir="auto">ssh root@fd71:6a85:f038:1::100</p>
<p dir="auto">Without needing physical access to the computer.</p>
<ol start="3">
<li>Suggested FOG settings</li>
</ol>
<p dir="auto">My suggestion is to introduce a small section under:</p>
<p dir="auto">FOG Configuration → FOG Settings → Debug Settings</p>
<p dir="auto">For example:</p>
<p dir="auto">Setting	Description<br />
FOG_DEBUG_SSH_ENABLED	Enable SSH access for Debug tasks<br />
FOG_DEBUG_SSH_PASSWORD_ENABLED	Allow password authentication for root during Debug tasks<br />
FOG_DEBUG_SSH_PASSWORD	Administrator-configured Debug password<br />
FOG_DEBUG_SSH_AUTHORIZED_KEYS	Optional SSH public keys for key-based authentication</p>
<p dir="auto">I would suggest keeping password authentication disabled by default and allowing administrators to enable it explicitly.</p>
<p dir="auto">It would also be useful to allow a per-task override when launching Debug Deploy or Debug Capture.</p>
<ol start="4">
<li>Automatic configuration</li>
</ol>
<p dir="auto">When a computer starts a Debug task, FOS could:</p>
<ol>
<li>Detect that the current task is running in Debug Mode.</li>
<li>Ensure that the existing OpenSSH service is running.</li>
<li>Enable the requested root authentication method.</li>
<li>Set the configured root password, if password authentication is enabled.</li>
<li>Install the configured SSH public keys, if applicable.</li>
<li>Display the available IPv4 and IPv6 addresses on the Debug console.</li>
<li>Keep SSH access available throughout the Debug session.</li>
</ol>
<p dir="auto">The administrator would not need to run passwd manually or modify the FOS init image.</p>
<ol start="5">
<li>Security considerations</li>
</ol>
<p dir="auto">I understand that automatically enabling root SSH access requires appropriate security controls.</p>
<p dir="auto">My suggestions are:</p>
<ul>
<li>Keep the feature disabled unless explicitly configured.</li>
<li>Enable the configured authentication only for Debug tasks.</li>
<li>Never hardcode a universal root password into the FOS image.</li>
<li>Never expose the password in plaintext in PXE URLs, kernel parameters, HTTP logs, or diagnostic output.</li>
<li>Use a protected credential-delivery mechanism rather than sending the password directly through iPXE.</li>
<li>Support SSH public-key authentication as the preferred option.</li>
<li>Optionally support a randomly generated password for each Debug task, visible only to authorized FOG administrators.</li>
<li>Ensure that Debug SSH credentials do not persist into normal Deploy or Capture environments.</li>
</ul>
<p dir="auto">For my isolated laboratory, a configurable shared password would be convenient, but a per-task password or an SSH key would be preferable for production environments.</p>
<ol start="6">
<li>Expected workflow</li>
</ol>
<p dir="auto">The ideal administrator workflow would be:</p>
<ol>
<li>Configure Debug SSH authentication once in FOG Settings.</li>
<li>Select a computer and launch Debug Deploy or Debug Capture.</li>
<li>Boot the client through PXE.</li>
<li>FOS automatically enables the configured root SSH authentication.</li>
<li>See the client’s IPv4 and IPv6 addresses on the console.</li>
<li>Connect remotely immediately and begin troubleshooting.</li>
</ol>
<p dir="auto">No physical visit and no manual password configuration would be required.</p>
<ol start="7">
<li>Why this would be useful</li>
</ol>
<p dir="auto">This would be particularly helpful for investigating:</p>
<ul>
<li>IPv4/IPv6 network configuration.</li>
<li>DHCPv6 and DNS resolution.</li>
<li>PXE, HTTP, and TFTP behavior.</li>
<li>NFS mounts and storage connectivity.</li>
<li>Disk detection and RAID controllers.</li>
<li>UDPcast and multicast sessions.</li>
<li>Kernel messages and FOS debugging.</li>
</ul>
<p dir="auto">It would significantly simplify troubleshooting when testing many physical computers simultaneously.</p>
<p dir="auto">Final suggestion</p>
<p dir="auto">My preferred implementation would be:</p>
<p dir="auto">Reuse the existing OpenSSH server, enable root SSH authentication automatically for Debug tasks, and make the authentication method configurable through FOG Settings.</p>
<p dir="auto">For an initial implementation, even a simple opt-in setting such as FOG_DEBUG_SSH_PASSWORD_ENABLED, combined with a configurable password delivered securely to FOS, would already be extremely useful.</p>
<p dir="auto">SSH public keys and automatically generated per-task credentials could provide additional flexibility.</p>
<p dir="auto">Would you consider adding this feature to FOS and FOG Server?</p>
<p dir="auto">Thank you again for your continued work on FOG and IPv6 support!</p>
]]></description><link>http://forums.fogproject.org/topic/18339/feature-request-automatic-root-ssh-authentication-for-fos-debug-tasks</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 16:31:23 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18339.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Nov 2026 14:04:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Feature Request — Automatic Root SSH Authentication for FOS Debug Tasks on Sat, 28 Nov 2026 15:28:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/28141">@sgennadi</a> Thanks for the detailed write-up. You are right that FOS already runs sshd and allows root login. The only gap is that root has no credential you can use remotely.</p>
<p dir="auto">I filed this as <a href="https://github.com/FOGProject/fogproject/issues/2193" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/FOGProject/fogproject/issues/2193</a> with a key-only design:</p>
<ul>
<li>You put one or more SSH public keys in a FOG setting.</li>
<li>When a debug task starts, FOS fetches the keys and installs them for root.</li>
<li>FOS shows the IPv4 and IPv6 addresses on the console, so you can connect right away.</li>
<li>Normal deploy, capture, and registration tasks never install the keys.</li>
</ul>
<p dir="auto">A public key is not a secret, so it can reach FOS without any protected delivery. A root password is different. It needs a protected way to reach FOS, and a kernel argument would expose it. So a configured password and a random password for each task are out of scope for now. Each can be its own request after the key version ships.</p>
<p dir="auto">Until then, the workaround is the one you already use: run <code>passwd</code> at the debug console, then connect with SSH.</p>
]]></description><link>http://forums.fogproject.org/post/159171</link><guid isPermaLink="true">http://forums.fogproject.org/post/159171</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Sat, 28 Nov 2026 15:28:27 GMT</pubDate></item></channel></rss>