<?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[SSH connection with private key fails]]></title><description><![CDATA[<p dir="auto">I've been trying to get a connection to work using SSH and private key for authentication. No matter what kind of ssh private key I use (with or without passphrase or different encryption method) I always get the same errors:</p>
<pre><code>Feb 24 13:13:18 guacd[318]: DEBUG: Attempting private key import (WITHOUT passphrase)
Feb 24 13:13:18 guacd[318]: DEBUG: Initial import failed: (null)
Feb 24 13:13:18 guacd[318]: DEBUG: Re-attempting private key import (WITH passphrase)
Feb 24 13:13:53 guacd[318]: ERROR: Auth key import failed: (null)
</code></pre>
<p dir="auto">I believe the issue is related to this: <a href="https://issues.apache.org/jira/browse/GUACAMOLE-1540" target="_blank" rel="noopener noreferrer nofollow ugc">https://issues.apache.org/jira/browse/GUACAMOLE-1540</a></p>
<p dir="auto">The suggested solution is to update the guacamole-server docker build to use libssh2 1.9.0-3.</p>
<p dir="auto">Currently it is using libssh2 1.8.0-2</p>
<p dir="auto">Can you please update the dockerfile to use the newer version of libssh2?</p>
]]></description><link>https://forum.cloudron.io/topic/6557/ssh-connection-with-private-key-fails</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 01:25:31 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6557.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Feb 2022 21:35:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SSH connection with private key fails on Mon, 14 Mar 2022 21:27:19 GMT]]></title><description><![CDATA[<p dir="auto">It seems support for the newer keys was just merged in Jan - <a href="https://github.com/apache/guacamole-server/commit/23612720ce3738e2fc579f57acd9d19eedf198fc" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/apache/guacamole-server/commit/23612720ce3738e2fc579f57acd9d19eedf198fc</a> . So, we have to wait for a new guacamole release. Until then, just use <code>-m PEM</code> to generate old style keys.</p>
]]></description><link>https://forum.cloudron.io/post/44676</link><guid isPermaLink="true">https://forum.cloudron.io/post/44676</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Mar 2022 21:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to SSH connection with private key fails on Fri, 08 Apr 2022 03:45:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thanks for looking into this!</p>
<p dir="auto">In the mean time I've also been able to get the connection to work by using the "old key" method.</p>
]]></description><link>https://forum.cloudron.io/post/45852</link><guid isPermaLink="true">https://forum.cloudron.io/post/45852</guid><dc:creator><![CDATA[RubenFixit]]></dc:creator><pubDate>Fri, 08 Apr 2022 03:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to SSH connection with private key fails on Mon, 14 Mar 2022 21:27:19 GMT]]></title><description><![CDATA[<p dir="auto">It seems support for the newer keys was just merged in Jan - <a href="https://github.com/apache/guacamole-server/commit/23612720ce3738e2fc579f57acd9d19eedf198fc" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/apache/guacamole-server/commit/23612720ce3738e2fc579f57acd9d19eedf198fc</a> . So, we have to wait for a new guacamole release. Until then, just use <code>-m PEM</code> to generate old style keys.</p>
]]></description><link>https://forum.cloudron.io/post/44676</link><guid isPermaLink="true">https://forum.cloudron.io/post/44676</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Mar 2022 21:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to SSH connection with private key fails on Mon, 14 Mar 2022 21:22:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rubenfixit" aria-label="Profile: RubenFixit">@<bdi>RubenFixit</bdi></a> Got the time to look into this now. I can confirm guac is not able to connect with the latest SSH key format. You can identify the "latest" key format by looking into the private key file. The header will say <code>-----BEGIN OPENSSH PRIVATE KEY-----</code> . The old keys have the format <code>-----BEGIN RSA PRIVATE KEY-----</code>.</p>
<p dir="auto">To generate an old key use <code>ssh-keygen -m PEM</code>. With that, I can confirm it works:</p>
<p dir="auto"><img src="/assets/uploads/files/1647292929874-304e74c6-a628-44ee-9884-5f5b03fd5455-image.png" alt="304e74c6-a628-44ee-9884-5f5b03fd5455-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It then connects:</p>
<p dir="auto"><img src="/assets/uploads/files/1647292959915-ec1f4dd4-83ad-4370-ac38-ff694108704b-image-resized.png" alt="ec1f4dd4-83ad-4370-ac38-ff694108704b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/44675</link><guid isPermaLink="true">https://forum.cloudron.io/post/44675</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Mar 2022 21:22:46 GMT</pubDate></item><item><title><![CDATA[Reply to SSH connection with private key fails on Sat, 26 Feb 2022 00:47:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rubenfixit" aria-label="Profile: RubenFixit">@<bdi>RubenFixit</bdi></a> Will look into this. Since Cloudron's docker images are based on ubuntu 20.04, we have to see if the library is available readily.</p>
]]></description><link>https://forum.cloudron.io/post/43992</link><guid isPermaLink="true">https://forum.cloudron.io/post/43992</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 26 Feb 2022 00:47:35 GMT</pubDate></item></channel></rss>