<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Digiapex</title>
    <description>The latest articles on DEV Community by Digiapex (@digiapex_83e73b1ca343c8ff).</description>
    <link>https://dev.to/digiapex_83e73b1ca343c8ff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265570%2F3e82a34e-0933-4fc1-91fa-3c3b8cec4d77.png</url>
      <title>DEV Community: Digiapex</title>
      <link>https://dev.to/digiapex_83e73b1ca343c8ff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/digiapex_83e73b1ca343c8ff"/>
    <language>en</language>
    <item>
      <title>My Let's Encrypt Certificate Expired and Nobody Told Me</title>
      <dc:creator>Digiapex</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:31:29 +0000</pubDate>
      <link>https://dev.to/digiapex_83e73b1ca343c8ff/my-lets-encrypt-certificate-expired-and-nobody-told-me-de1</link>
      <guid>https://dev.to/digiapex_83e73b1ca343c8ff/my-lets-encrypt-certificate-expired-and-nobody-told-me-de1</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5mm75i9cvwewoq0lk8kx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5mm75i9cvwewoq0lk8kx.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The message came in on a Monday morning: "Hey, your site says it's not private?"&lt;/p&gt;

&lt;p&gt;I opened it on my phone and got the full-screen warning. On my laptop, Chrome was more specific: &lt;code&gt;NET::ERR_CERT_DATE_INVALID&lt;/code&gt;. My Let's Encrypt certificate had expired.&lt;/p&gt;

&lt;p&gt;That made no sense to me. I had set up Certbot on this little Ubuntu 24.04 server more than a year earlier, watched the first renewal go through, and never thought about it again. That was sort of the point.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo certbot certificates
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Certificate Name: example.com
    Expiry Date: 2026-11-21 08:14:03+00:00 (INVALID: EXPIRED)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expired on Saturday. Two days of every visitor being told my site might be stealing their data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The timer was working. That was the problem.
&lt;/h2&gt;

&lt;p&gt;My first thought was that the renewal timer had died. It hadn't.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl list-timers &lt;span class="o"&gt;|&lt;/span&gt; grep certbot
sudo journalctl -u certbot.service -n 30
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;certbot.timer&lt;/code&gt; had been running twice a day, every day, exactly as designed. It had also been failing twice a day for weeks. Certbot only tries to renew when a certificate gets close to expiry, so the failures started about a month before the end, and nobody was reading that log.&lt;/p&gt;

&lt;p&gt;So why didn't I get the usual "your certificate expires soon" email? Because there isn't one anymore. Let's Encrypt stopped sending expiry emails in June 2025. I knew that, in the abstract. I had never connected it to "so now nobody will tell you."&lt;/p&gt;

&lt;h2&gt;
  
  
  First error: the firewall I cleaned up
&lt;/h2&gt;

&lt;p&gt;I ran a practice renewal, which doesn't touch the real certificate or count against rate limits:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo certbot renew --dry-run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Type:   connection
Detail: 203.0.113.10: Fetching http://example.com/.well-known/acme-challenge/...: Timeout during connect (likely firewall problem)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"Likely firewall problem." Certbot was being polite. It was definitely a firewall problem, and it was definitely me.&lt;/p&gt;

&lt;p&gt;A few months earlier I had tidied up UFW. The site redirects everything to HTTPS, so I thought port 80 was dead weight and removed it. What I'd forgotten is how Let's Encrypt checks that you own the domain: it asks your server to put a small file under &lt;code&gt;/.well-known/acme-challenge/&lt;/code&gt;, then fetches it over plain HTTP, on port 80. Even if your site never serves anything there except a redirect.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ufw allow 80/tcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Second error: the site I moved
&lt;/h2&gt;

&lt;p&gt;Dry run again. A different error this time, which felt like progress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Type:   unauthorized
Detail: 203.0.113.10: Invalid response from http://example.com/.well-known/acme-challenge/...: 404
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's Encrypt could reach the server now, but the server said the file didn't exist. I looked at how Certbot was set up to renew:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cat /etc/letsencrypt/renewal/example.com.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="na"&gt;authenticator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;webroot&lt;/span&gt;
&lt;span class="na"&gt;webroot_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And there it was. Since the first certificate, I had moved the site behind a small Node.js app, and Nginx now sent every request, &lt;code&gt;location /&lt;/code&gt; and all, to that app. Certbot was still dutifully writing its challenge file into &lt;code&gt;/var/www/html&lt;/code&gt;, a folder nothing served anymore. The app had never heard of &lt;code&gt;/.well-known/acme-challenge/&lt;/code&gt;, so it answered 404.&lt;/p&gt;

&lt;p&gt;The fix was to give the challenge path its own home in the port 80 server block, ahead of the redirect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;^~&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;well&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;known&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;acme&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;challenge&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;letsencrypt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;default_type&lt;/span&gt; &lt;span class="s2"&gt;"text/plain"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then tell Certbot about the new folder. &lt;code&gt;certbot reconfigure&lt;/code&gt; updates the renewal settings without issuing a new certificate, which I didn't know existed until that morning:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo mkdir -p /var/www/letsencrypt
sudo nginx -t &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo systemctl reload nginx
sudo certbot reconfigure --cert-name example.com --webroot -w /var/www/letsencrypt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dry run: &lt;code&gt;Congratulations, all simulated renewals succeeded&lt;/code&gt;. I may have said something out loud.&lt;/p&gt;

&lt;h2&gt;
  
  
  There was no third error. Except there was.
&lt;/h2&gt;

&lt;p&gt;I ran the real renewal. It succeeded. I refreshed the site.&lt;/p&gt;

&lt;p&gt;Still expired.&lt;/p&gt;

&lt;p&gt;I refreshed again, cleared the cache, opened a private window. Still expired. &lt;code&gt;sudo certbot certificates&lt;/code&gt; showed a brand new expiry date, and the browser showed the old one.&lt;/p&gt;

&lt;p&gt;This one took me longer than it should have. Nginx reads the certificate files when it starts or reloads, then keeps them in memory. Certbot's Nginx plugin reloads it for you after a renewal. The webroot method doesn't. Certbot had put a perfectly good new certificate on disk, and Nginx was still handing out the dead one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl reload nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Padlock back. Then, so I'd never have to remember that again, a deploy hook. It only runs after a successful renewal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo sh -c &lt;span class="s1"&gt;'printf "#!/bin/sh\nsystemctl reload nginx\n" &amp;gt; /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh'&lt;/span&gt;
sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why this is about to matter more
&lt;/h2&gt;

&lt;p&gt;Here's the part that made me take it seriously instead of just being embarrassed. From 10 February 2027, Let's Encrypt certificates will last 64 days instead of 90, and from 2028, 45 days. Renewals will also have to pass the domain check again more often, because a successful check can be reused for less time.&lt;/p&gt;

&lt;p&gt;With 90-day certificates, my broken setup still gave me a few quiet weeks before anything showed. With shorter certificates, the gap between "renewal starts failing" and "visitors see a warning" keeps shrinking. If nothing is watching, you find out the way I did.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I do now
&lt;/h2&gt;

&lt;p&gt;I run &lt;code&gt;sudo certbot renew --dry-run&lt;/code&gt; after any change to Nginx, the firewall or DNS. It takes ten seconds and tells me right away if I've broken renewal.&lt;/p&gt;

&lt;p&gt;I check the certificate the site actually serves, not the file on disk. This runs from a daily cron job and writes to the system log if fewer than 7 days are left:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; openssl s_client -connect example.com:443 -servername example.com 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; openssl x509 -noout -checkend 604800 &lt;span class="o"&gt;||&lt;/span&gt; logger -t ssl-check &lt;span class="s2"&gt;"certificate expires within 7 days"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And I read Certbot's error properly before touching anything, because each one points somewhere different:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Timeout during connect:&lt;/strong&gt; nothing answered on port 80, almost always a firewall.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invalid response ... 404:&lt;/strong&gt; the server answered, but the challenge file wasn't where Let's Encrypt looked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New date in &lt;code&gt;certbot certificates&lt;/code&gt;, old date in the browser:&lt;/strong&gt; the web server never reloaded.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are more of these: DNS problems, stale IPv6 records, standalone mode fighting Nginx for port 80, rate limits from retrying too much. When I hit a new one, I go through &lt;a href="https://nodexvps.com/blog/fix-certbot-renewal-failed" rel="noopener noreferrer"&gt;this checklist of Certbot renewal errors and their fixes&lt;/a&gt; instead of guessing.&lt;/p&gt;

&lt;p&gt;Auto-renewal is still the right idea. The renewal itself was never the problem. Assuming it would keep working with nobody checking was.&lt;/p&gt;

</description>
      <category>letsencrypt</category>
      <category>linux</category>
      <category>nginx</category>
      <category>devops</category>
    </item>
    <item>
      <title>I Locked Myself Out of My Own Server by Changing One Line</title>
      <dc:creator>Digiapex</dc:creator>
      <pubDate>Fri, 27 Nov 2026 07:06:27 +0000</pubDate>
      <link>https://dev.to/digiapex_83e73b1ca343c8ff/i-locked-myself-out-of-my-own-server-by-changing-one-line-1699</link>
      <guid>https://dev.to/digiapex_83e73b1ca343c8ff/i-locked-myself-out-of-my-own-server-by-changing-one-line-1699</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foz4ujakh6z31hc72qzs4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foz4ujakh6z31hc72qzs4.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;&lt;br&gt;
It was supposed to be a five-minute job.&lt;/p&gt;

&lt;p&gt;Every hardening guide says the same thing: move SSH off port 22 and the bots will mostly leave you alone. So one evening I opened &lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt; on a fresh Ubuntu 24.04 server, changed one line, and restarted SSH.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Port 2222
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl restart ssh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No errors. I opened a second terminal to try the new port.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh: connect to host 203.0.113.10 port 2222: Connection refused
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The line that did nothing
&lt;/h2&gt;

&lt;p&gt;"Refused" is a very specific word. It means my request reached the server and the server said nothing is listening there. So I checked what SSH was actually listening on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ss -tlnp &lt;span class="o"&gt;|&lt;/span&gt; grep ssh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Port 22. Still. The file said 2222, the restart had worked, and SSH did not care.&lt;/p&gt;

&lt;p&gt;It took me an embarrassingly long time to find out why. Since Ubuntu 22.10, SSH is started by a systemd socket, &lt;code&gt;ssh.socket&lt;/code&gt;, and the socket is what owns the port. The &lt;code&gt;Port&lt;/code&gt; line in &lt;code&gt;sshd_config&lt;/code&gt; is only picked up when systemd regenerates that socket, and restarting the &lt;code&gt;ssh&lt;/code&gt; service doesn't do that. This does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl daemon-reload
sudo systemctl restart ssh.socket
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;ss&lt;/code&gt; showed &lt;code&gt;:2222&lt;/code&gt;. Progress.&lt;/p&gt;

&lt;h2&gt;
  
  
  The door I forgot to open
&lt;/h2&gt;

&lt;p&gt;I tried again, and this time nothing happened at all. No "refused". The cursor just sat there until:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh: connect to host 203.0.113.10 port 2222: Connection timed out
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A timeout is a different animal. Refused means someone answered "no". Timed out means nobody answered, usually because something in between threw the packets away. In my case that something was UFW. Weeks earlier I had run &lt;code&gt;ufw allow OpenSSH&lt;/code&gt;, which opens port 22. Nobody had ever told it about 2222.&lt;/p&gt;

&lt;p&gt;And here's the part I'm least proud of. To "test cleanly", I had already closed my original session. SSH was no longer on 22, the firewall was blocking 2222, and I had no way in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting back in through the side door
&lt;/h2&gt;

&lt;p&gt;What saved me was the browser console in my VPS control panel. It's like plugging a screen and keyboard into the server: no SSH, no firewall in the way. I logged in as root with the password I had almost forgotten I had, and ran the one command I should have run first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ufw allow 2222/tcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Back in, from my own terminal, in about thirty seconds. The whole lockout lasted maybe twenty minutes. It felt much longer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two days later: Permission denied (publickey)
&lt;/h2&gt;

&lt;p&gt;Feeling confident again, I did the next thing on the hardening list. I created a normal user, copied root's &lt;code&gt;authorized_keys&lt;/code&gt; into the new user's home folder with &lt;code&gt;sudo cp&lt;/code&gt;, and switched off root login. Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;me@203.0.113.10: Permission denied (publickey).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key was right. I checked it three times. The problem was the word &lt;code&gt;sudo&lt;/code&gt;. The copied file still belonged to root and kept its private permissions, and SSH reads &lt;code&gt;authorized_keys&lt;/code&gt; as the user who is logging in. My new user wasn't allowed to read its own key file. SSH doesn't explain that, it just quietly ignores the key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo chown -R me:me /home/me/.ssh
sudo chmod 700 /home/me/.ssh
sudo chmod 600 /home/me/.ssh/authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Logged straight in. This time, luckily, I had kept my root session open in another tab.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I do now, every single time
&lt;/h2&gt;

&lt;p&gt;I keep a second session open whenever I touch SSH or the firewall. If the change breaks something, that session is still my way in.&lt;/p&gt;

&lt;p&gt;I open the new port in the firewall before I move SSH to it, never after.&lt;/p&gt;

&lt;p&gt;I run &lt;code&gt;sudo sshd -t&lt;/code&gt; after every edit. No output means the config is valid. One typo in that file can take SSH down entirely.&lt;/p&gt;

&lt;p&gt;And I read the error message properly, because the three common ones mean very different things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connection refused:&lt;/strong&gt; the request arrived, but nothing is listening on that port.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connection timed out:&lt;/strong&gt; nothing answered, usually a firewall dropping the packets, or the wrong IP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission denied (publickey):&lt;/strong&gt; you got through the door, but the lock didn't accept your key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I'm stuck on a new variation, I go through &lt;a href="https://nodexvps.com/blog/fix-ssh-connection-refused" rel="noopener noreferrer"&gt;a longer checklist for each of these SSH errors&lt;/a&gt; instead of guessing.&lt;/p&gt;

&lt;p&gt;Moving SSH to 2222 did cut down the noise in my auth log. It also cost me an evening and a little pride. The port change was never the real problem, though. Changing things on a live server while having only one way in was.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ssh</category>
      <category>devops</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
