<?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 client from inside app container]]></title><description><![CDATA[<p dir="auto">I need to transfer data from a linux server to the data directory of a Cloudron app. Figured I'd do so server-to-server with <code>scp</code>.</p>
<ol>
<li>I've managed to generate a keypair and use it with the <code>-i</code> flag, since <code>/root/.ssh</code> isn't writable. Did so with <code>ssh-keygen -t rsa -b 4096</code>, saving it to <code>/app/data/ssh</code></li>
<li>I've put the public key in the other server's <code>authorized_keys</code>.</li>
<li>I've also used <code>-o</code> to use a custom <code>known_hosts</code> file.</li>
</ol>
<p dir="auto">Still, I get this:</p>
<pre><code>Could not create directory '/root/.ssh'.
Load key "/app/data/ssh/id_rsa.pub": invalid format
user@IP: Permission denied (publickey).
</code></pre>
<p dir="auto">How can I get it working?</p>
]]></description><link>https://forum.cloudron.io/topic/2341/ssh-client-from-inside-app-container</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:20:58 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2341.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Apr 2020 11:39:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SSH client from inside app container on Thu, 16 Apr 2020 20:37:55 GMT]]></title><description><![CDATA[<p dir="auto">It proved a decent strategy given I get 50MB/s in a direct server-to-server transfer instead of caching it on my computer at a speed of 3MB/s.</p>
]]></description><link>https://forum.cloudron.io/post/7445</link><guid isPermaLink="true">https://forum.cloudron.io/post/7445</guid><dc:creator><![CDATA[yusf]]></dc:creator><pubDate>Thu, 16 Apr 2020 20:37:55 GMT</pubDate></item><item><title><![CDATA[Reply to SSH client from inside app container on Wed, 15 Apr 2020 20:56:23 GMT]]></title><description><![CDATA[<p dir="auto">Ah yes, it didn’t even occur to me that I could just scp from box the whole time. Somehow I’ve compartmentalized the app data to be not reachable from the host system when in fact it easily is. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f926.png?v=16ee7d1409f" class="not-responsive emoji emoji-android emoji--face_palm" style="height:23px;width:auto;vertical-align:middle" title="🤦" alt="🤦" />‍<img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/2642.png?v=16ee7d1409f" class="not-responsive emoji emoji-android emoji--male_sign" style="height:23px;width:auto;vertical-align:middle" title="♂" alt="♂" />️</p>
<p dir="auto">I’m migrating a WP site. I know that there are other ways too <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=16ee7d1409f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/7389</link><guid isPermaLink="true">https://forum.cloudron.io/post/7389</guid><dc:creator><![CDATA[yusf]]></dc:creator><pubDate>Wed, 15 Apr 2020 20:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to SSH client from inside app container on Wed, 15 Apr 2020 16:31:00 GMT]]></title><description><![CDATA[<p dir="auto">In the container, you can always do:</p>
<pre><code>ssh-keygen -f /run/bling.key # this generates /run/bling.pub and /run/bling.key

scp -i /run/bling &lt;args&gt;
</code></pre>
]]></description><link>https://forum.cloudron.io/post/7369</link><guid isPermaLink="true">https://forum.cloudron.io/post/7369</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 15 Apr 2020 16:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to SSH client from inside app container on Wed, 15 Apr 2020 12:27:51 GMT]]></title><description><![CDATA[<p dir="auto">The ssh server is running on the linux host not inside the app as such. So in your case you would have to scp to the server itself and the destination for the files would be something like <code>/home/yellowtent/appsdata/&lt;appid&gt;/data/</code> where appid can be obtained for example via the dashboard in the app configure view (it is the id shown in the url bar of the browser and looks like <code>2044032d-2f56-4c84-926f-7a1ec272f7f1</code>)<br />
Generally this flow is not great usability wise and you have to be careful what to overwrite with this inside the app data. Also to ensure filesystem permissions are correct, you have to restart the app afterwards.</p>
<p dir="auto">Can you maybe explain the actual use-case for this and maybe there is an alternative process to get data inside the app?</p>
]]></description><link>https://forum.cloudron.io/post/7361</link><guid isPermaLink="true">https://forum.cloudron.io/post/7361</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 15 Apr 2020 12:27:51 GMT</pubDate></item></channel></rss>