<?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 Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">Yesterday, I reinstalled and restored my server, and everything went smoothly without any issues. After the installation, I tried to change the SSH port to 202 in the <code>/etc/ssh/sshd_config</code> file. I added the following line:</p>
<pre><code class="language-bash">Port 202   # Do not use any other port. Only this port is not blocked by the Cloudron firewall
</code></pre>
<p dir="auto">Then, I restarted SSH using:</p>
<pre><code class="language-bash">systemctl restart ssh
</code></pre>
<p dir="auto">(I noticed that older documents suggest <code>systemctl restart sshd</code>, but that doesn't seem to work anymore). However, I still can't connect via port 202. I have to use the default connection command:</p>
<pre><code class="language-bash">ssh user@ip_server
</code></pre>
<p dir="auto">I'm running Ubuntu 24.04.01 LTS. Is this method still valid for Cloudron, or did I miss something?</p>
<p dir="auto">Thanks for your help!</p>
]]></description><link>https://forum.cloudron.io/topic/12671/ssh-port-202-not-working-after-changing-etc-ssh-sshd_config</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 09:56:34 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12671.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Oct 2024 05:40:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Mon, 25 Nov 2024 19:12:06 GMT]]></title><description><![CDATA[<p dir="auto">I was about to write a long time ago that the parameter for resetting SSH has changed:</p>
<pre><code>sudo systemctl restart ssh.socket
</code></pre>
]]></description><link>https://forum.cloudron.io/post/97319</link><guid isPermaLink="true">https://forum.cloudron.io/post/97319</guid><dc:creator><![CDATA[matix131997]]></dc:creator><pubDate>Mon, 25 Nov 2024 19:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Mon, 18 Nov 2024 03:54:47 GMT]]></title><description><![CDATA[<p dir="auto">I added a note to reboot in the docs.</p>
]]></description><link>https://forum.cloudron.io/post/96989</link><guid isPermaLink="true">https://forum.cloudron.io/post/96989</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 18 Nov 2024 03:54:47 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Mon, 18 Nov 2024 03:52:28 GMT]]></title><description><![CDATA[<p dir="auto">So, I didn't have to change <code>/lib/systemd/system/ssh.socket</code> at all. But I did have to reboot the server since a simple <code>systemctl restart ssh</code> did not work. Curiously, after reboot the socket file still has ListenStream as 22 but I can connect only to 202.</p>
]]></description><link>https://forum.cloudron.io/post/96988</link><guid isPermaLink="true">https://forum.cloudron.io/post/96988</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 18 Nov 2024 03:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Mon, 28 Oct 2024 06:44:15 GMT]]></title><description><![CDATA[<p dir="auto">This should be in the Cloudron docs…</p>
]]></description><link>https://forum.cloudron.io/post/96112</link><guid isPermaLink="true">https://forum.cloudron.io/post/96112</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 28 Oct 2024 06:44:15 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Sun, 27 Oct 2024 12:26:37 GMT]]></title><description><![CDATA[<p dir="auto">Ran into the same issue, apparently Ubuntu 24 requires an edit in <code>/lib/systemd/system/ssh.socket</code> as well, you need to adjust the <code>ListenStream</code> to <code>202</code> and trigger a <code>systemctl daemon-reload</code> - after that it should be listening on port 202.</p>
]]></description><link>https://forum.cloudron.io/post/96108</link><guid isPermaLink="true">https://forum.cloudron.io/post/96108</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Sun, 27 Oct 2024 12:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Sun, 20 Oct 2024 11:29:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matix131997" aria-label="Profile: matix131997">@<bdi>matix131997</bdi></a>  I tried connecting with the following command:</p>
<pre><code class="language-bash">ssh -p 202 root@ip
</code></pre>
<p dir="auto">But it fails with the error:</p>
<pre><code class="language-bash">Connection refused
</code></pre>
<p dir="auto">It seems like port 22 is still open, and port 202 doesn't work. I was expecting that after the restart, port 22 would be closed and I would only be able to connect through port 202.</p>
]]></description><link>https://forum.cloudron.io/post/95855</link><guid isPermaLink="true">https://forum.cloudron.io/post/95855</guid><dc:creator><![CDATA[archos]]></dc:creator><pubDate>Sun, 20 Oct 2024 11:29:43 GMT</pubDate></item><item><title><![CDATA[Reply to SSH Port 202 not working after changing &#x2F;etc&#x2F;ssh&#x2F;sshd_config on Sun, 20 Oct 2024 07:03:23 GMT]]></title><description><![CDATA[<p dir="auto">After changing the port, then you have to connect this way:</p>
<pre><code>ssh user@ip_server -p 202
</code></pre>
]]></description><link>https://forum.cloudron.io/post/95850</link><guid isPermaLink="true">https://forum.cloudron.io/post/95850</guid><dc:creator><![CDATA[matix131997]]></dc:creator><pubDate>Sun, 20 Oct 2024 07:03:23 GMT</pubDate></item></channel></rss>