<?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: O Oliver</title>
    <description>The latest articles on DEV Community by O Oliver (@o_oliver_3b38e6829628a1e9).</description>
    <link>https://dev.to/o_oliver_3b38e6829628a1e9</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%2F3847288%2F7bcec0ab-29a0-479c-be4e-a8e6fe32bab2.png</url>
      <title>DEV Community: O Oliver</title>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/o_oliver_3b38e6829628a1e9"/>
    <language>en</language>
    <item>
      <title>Turn Voice Recordings into Useful Technical Notes with SpeedTranscript</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Sun, 15 Nov 2026 01:35:47 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/turn-voice-recordings-into-useful-technical-notes-with-speedtranscript-314f</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/turn-voice-recordings-into-useful-technical-notes-with-speedtranscript-314f</guid>
      <description>&lt;p&gt;A recorded walkthrough can explain a bug better than a hurried message. The trouble starts later, when someone needs to find the exact reproduction step, command, or decision buried in the audio.&lt;/p&gt;

&lt;p&gt;Transcription helps, but the text still needs a review process. For technical material, a plausible-looking mistake in a package name or version number can send the next person in the wrong direction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://speedtranscript.com/" rel="noopener noreferrer"&gt;SpeedTranscript&lt;/a&gt; provides a browser-based workflow for turning saved audio into editable, timestamped text. For the screenshots below, I used an 18-second synthetic recording of a technical walkthrough. The recording is a demonstration sample, rather than a real bug report.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with one useful recording
&lt;/h2&gt;

&lt;p&gt;Choose a focused recording: a bug walkthrough, an interview about a feature, or a short explanation of an unfamiliar codebase. A clear topic makes the resulting transcript easier to check and organize.&lt;/p&gt;

&lt;p&gt;SpeedTranscript accepts common audio formats, including MP3, WAV, and M4A, with a listed upload limit of 500 MB. An exported iPhone voice memo is one possible starting point.&lt;/p&gt;

&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%2F3drn4nhdejrhg8xwtz9j.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%2F3drn4nhdejrhg8xwtz9j.png" alt="SpeedTranscript upload interface for a saved audio recording" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Choose a saved recording before starting transcription.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Selecting a file does not upload it. According to the site, the audio leaves the browser when you press &lt;strong&gt;Transcribe&lt;/strong&gt;. Transcription requires signing in and uses cloud processing, so check the site's privacy information and your team's recording policy before sending confidential material.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review the details that change meaning
&lt;/h2&gt;

&lt;p&gt;Once transcription finishes, use timestamps to return to the corresponding audio segment. This is especially useful for details that speech recognition can get almost right:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Package names, identifiers, and acronyms.&lt;/li&gt;
&lt;li&gt;Version numbers, dates, and measurements.&lt;/li&gt;
&lt;li&gt;Negations such as “doesn't reproduce.”&lt;/li&gt;
&lt;li&gt;Whether someone proposed an action or actually agreed to it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SpeedTranscript lets you correct individual segments while keeping their timestamps. It also supports adding speaker names manually; automatic speaker separation is listed as a Pro feature.&lt;/p&gt;

&lt;p&gt;In this sample, the service returned four timestamped segments. One segment combined the version number and two instructions into a long sentence. I changed the punctuation in the editor, then clicked its timestamp to move the player to about two seconds.&lt;/p&gt;

&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%2Fbxwxf4gz834n3ic56nna.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%2Fbxwxf4gz834n3ic56nna.png" alt="Editable transcript segments with timestamps and the audio waveform" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The real result editor, using the synthetic demonstration recording. Segment text can be corrected alongside the audio.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For commands and code, compare the wording with the original terminal output or repository whenever possible. A transcript should help locate the evidence, rather than become the only evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export for the next task
&lt;/h2&gt;

&lt;p&gt;For a README draft or issue description, TXT gives you a straightforward starting point. Reorganize the spoken explanation into prerequisites, steps, expected behavior, and observed behavior. Keep unresolved questions visible instead of turning uncertain speech into confident documentation.&lt;/p&gt;

&lt;p&gt;For a recorded tutorial, export SRT and check the captions against playback. Both TXT and SRT are available on all accounts. Pro adds DOCX, VTT, and JSON; PDF export uses the browser's print dialog.&lt;/p&gt;

&lt;p&gt;For this walkthrough, I selected SRT and downloaded the file. The exported second cue retained the punctuation edits and ran from &lt;code&gt;00:00:02,150&lt;/code&gt; to &lt;code&gt;00:00:10,375&lt;/code&gt;.&lt;/p&gt;

&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%2Fnewbf3lsocjk76sonhz4.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%2Fnewbf3lsocjk76sonhz4.png" alt="SRT selected in the export control above the edited transcript" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Choose SRT and use Download to export timed captions. Longer cues still need a readability pass in your subtitle editor.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The site currently offers new accounts two one-time free credits. Each credit covers up to 30 minutes, with usage rounded up per transcription and a one-credit minimum. Short files therefore still consume a full credit.&lt;/p&gt;

&lt;p&gt;A useful transcript makes the original recording easier to verify and reuse. The final editing pass is what turns it into something another developer can rely on.&lt;/p&gt;

&lt;p&gt;Which details take you the longest to correct in technical transcripts: terminology, speaker attribution, or code references?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to price a 3D print when one in eight fails</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Thu, 12 Nov 2026 02:51:59 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/how-to-price-a-3d-print-when-one-in-eight-fails-15cj</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/how-to-price-a-3d-print-when-one-in-eight-fails-15cj</guid>
      <description>&lt;p&gt;Most 3D printing price quotes fail in the same place: the seller adds up filament and electricity, gets a number like $7.50, and then discovers over a month that failed prints quietly ate the margin. The failure cost is real, but it belongs in a specific place in the math, not smeared into the material rate.&lt;/p&gt;

&lt;p&gt;This note walks through the cost model behind a small &lt;a href="https://voxel3d.app/3d-printing-cost-calculator" rel="noopener noreferrer"&gt;3D printing cost calculator&lt;/a&gt; I built for the Voxel3D project, with the exact formulas and a worked example you can reproduce in a REPL. It is about the quoting step, not about modeling. If your input is still a picture rather than a mesh, start earlier in the pipeline with the &lt;a href="https://voxel3d.app/3d-model-from-image" rel="noopener noreferrer"&gt;3d model from image&lt;/a&gt; guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Four separate cost lines, not one "price per gram"
&lt;/h2&gt;

&lt;p&gt;A print job has four independent cost drivers, and collapsing them into a single per-gram rate is what makes quotes drift:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Material&lt;/strong&gt;: sliced weight in grams times your per-kilogram filament price. Include supports, brim, raft and purge in the weight; measuring only the finished part understates material by 10-30% on support-heavy jobs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Electricity&lt;/strong&gt;: printer watts times hours times your tariff. On an FDM machine this is usually the smallest line, often under $0.50 for an overnight print.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Labor&lt;/strong&gt;: hands-on minutes times your hourly rate. Slicing, bed prep, post-processing, packaging. This line is routinely forgotten and is often larger than material.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machine time&lt;/strong&gt;: hours on the printer times a per-hour machine rate. This is the line that covers wear, maintenance and eventual replacement.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeping them separate matters because they scale differently. Double the print time and electricity and machine time double, but labor does not. Double the model and material roughly doubles, but failure risk does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Failure is a divisor, not an add-on
&lt;/h2&gt;

&lt;p&gt;If one print in eight fails, your failure rate is 12.5%. The tempting move is to add 12.5% to the cost. That is wrong, and the size of the error grows with the failure rate.&lt;/p&gt;

&lt;p&gt;The correct model: to deliver N good prints at failure rate f, you start N / (1 - f) prints. So expected cost per delivered print is the base cost divided by (1 - f):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;total = base / (1 - failure/100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At 10% failure, dividing gives +11.1% over base; adding would give +10%. Close enough. At 30% failure, dividing gives +42.9%; adding gives +30%. That gap is your missing margin on exactly the jobs that fail most.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Markup multiplies the failure-adjusted cost
&lt;/h2&gt;

&lt;p&gt;Markup applies after the failure adjustment, because a failed print consumes the same machine hours and material as a good one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;markup&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Markup on top of the raw base would systematically undercharge precisely when failure rates are high.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The implementation
&lt;/h2&gt;

&lt;p&gt;The calculator keeps the model in one pure function so it can be unit-tested. This is the whole thing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;CostInput&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;grams&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;perKg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// material&lt;/span&gt;
  &lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;watts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;perKwh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// electricity&lt;/span&gt;
  &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;perHour&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// labor&lt;/span&gt;
  &lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                    &lt;span class="c1"&gt;// per-hour machine rate&lt;/span&gt;
  &lt;span class="n"&gt;failure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;markup&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="c1"&gt;// percent&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;printingCost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;CostInput&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;material&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;grams&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;perKg&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;electricity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;watts&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;perKwh&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;labor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minutes&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;perHour&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;machine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;material&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;electricity&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;labor&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;failure&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;markup&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;material&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;electricity&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;labor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;allowance&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="p"&gt;}&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;Two guardrails worth copying: reject non-finite or negative inputs instead of letting &lt;code&gt;NaN&lt;/code&gt; flow into a quote, and treat a 100% failure rate as "no answer" rather than dividing by zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A worked example
&lt;/h2&gt;

&lt;p&gt;A customer wants a 320 g part, sliced at 16 hours. PLA at $22/kg, 150 W average draw, $0.20/kWh, 25 minutes of hands-on time at $15/h, machine rate $0.50/h, 12% failure rate, 25% markup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;material    320/1000 * 22          = $7.04
electricity 0.15 kW * 16 h * 0.20  = $0.48
labor       25/60 * 15             = $6.25
machine     16 * 0.50              = $8.00
base                               = $21.77
failure     21.77 / 0.88           = $24.74  (allowance $2.97)
price       24.74 * 1.25           = $30.92
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things to notice. Labor plus machine time ($14.25) is twice the material cost; a per-gram quote would miss both. And the failure allowance is $2.97, not the $2.61 you would get from adding 12%.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Test the model, not just the UI
&lt;/h2&gt;

&lt;p&gt;Because the function is pure, the quote math is one assertion away from a regression test. The project's test pins the default input so the displayed example cannot silently drift:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;printingCost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;defaultCost&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;material&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;electricity&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBeCloseTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBeCloseTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;5.62&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;0.9&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBeCloseTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;5.62&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;0.9&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;1.2&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;If someone later "simplifies" the failure handling to an additive term, this test fails loudly instead of quietly repricing every quote.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Where this fits
&lt;/h2&gt;

&lt;p&gt;The calculator is one of four free tools around the model workflow. The others handle the geometry steps: converting a self-contained GLB into a printable mesh with the &lt;a href="https://voxel3d.app/glb-to-stl" rel="noopener noreferrer"&gt;GLB to STL converter&lt;/a&gt;, turning a binary or ASCII STL into an inspectable Wavefront file with the &lt;a href="https://voxel3d.app/stl-to-obj" rel="noopener noreferrer"&gt;STL to OBJ converter&lt;/a&gt;, and generating raised lettering as a binary STL with the &lt;a href="https://voxel3d.app/text-stl" rel="noopener noreferrer"&gt;text to STL tool&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;None of the math here is exotic. The point is that failure belongs in the denominator, labor and machine time deserve their own lines, and the whole model fits in one tested function. Quote from that, and the end-of-month numbers stop surprising you.&lt;/p&gt;

</description>
      <category>3dprinting</category>
      <category>webdev</category>
      <category>science</category>
      <category>smallbusiness</category>
    </item>
    <item>
      <title>What 2,172 triangles tells you about a text-to-STL export</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 10 Nov 2026 03:23:20 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/what-2172-triangles-tells-you-about-a-text-to-stl-export-48al</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/what-2172-triangles-tells-you-about-a-text-to-stl-export-48al</guid>
      <description>&lt;p&gt;A text field that produces an STL file looks deceptively simple. Type a word, pick a size and a depth, download a mesh. But the exported numbers are rarely the numbers you typed, and a letter that renders cleanly on screen can disappear in a slicer at a 0.4 mm nozzle.&lt;/p&gt;

&lt;p&gt;This note comes from a browser-based text-to-mesh tool in the Voxel3D project. It is about the step &lt;em&gt;after&lt;/em&gt; geometry exists, not about image generation. For the earlier image preparation and generation workflow, see the &lt;a href="https://voxel3d.app/3d-model-from-image" rel="noopener noreferrer"&gt;3d model from image&lt;/a&gt; guide. Here the input is a line of text and the output is a binary STL.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Extruding outlines is not the same as rendering a font
&lt;/h2&gt;

&lt;p&gt;A screen font paints pixels. A printable letter is a closed solid with a top face, a bottom face and side walls. The generator constructs outlines from a bundled sans-serif font, extrudes them along Z, and writes triangle geometry. A space remains a gap, and separate letters remain separate solids.&lt;/p&gt;

&lt;p&gt;Two consequences follow. First, the download is usually several disconnected parts, not one nameplate. There is no rectangular sign, no mounting holes and no backing plate unless you add them in an editor. Second, character coverage matters: this tool supports Latin letters, digits and common punctuation, and rejects unsupported characters rather than silently substituting a missing-glyph box into your geometry.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Verify the file instead of trusting the UI
&lt;/h2&gt;

&lt;p&gt;A binary STL has an 80-byte header, a 32-bit triangle count and then exactly 50 bytes per triangle. That makes the exported numbers cheap to check independently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# inspect_text_stl.py&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;
&lt;span class="nf"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;read_binary_stl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;84&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Not a binary STL"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unpack_from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;I"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;84&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Header says {count} triangles; file holds {(len(data) - 84) // 50}"&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ys&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="c1"&gt;# 12 floats = normal (3) + three vertices (9), then a 2-byte attribute count&lt;/span&gt;
        &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unpack_from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;12f"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;84&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;ys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;zs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;lo&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ys&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;hi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ys&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"triangles"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"min_mm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"max_mm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hi&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"extents_mm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;read_binary_stl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;indent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&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;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python inspect_text_stl.py nameplate.stl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In our browser test, the default string at a 20 mm type size and 3 mm depth produced &lt;strong&gt;2,172 triangles&lt;/strong&gt;, with reported bounding dimensions of approximately &lt;strong&gt;104.74 × 20.78 × 3 mm&lt;/strong&gt;. Those are measurements of the exported mesh, not a ruler measurement of a physical print. The script above is how you reproduce the geometry part of that check from your own download.&lt;/p&gt;

&lt;p&gt;An STL carries no dependable unit declaration. The millimetre interpretation here comes from the tool's documented scale, not from the file format.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The size field is not the finished dimension
&lt;/h2&gt;

&lt;p&gt;The 20 mm type size did not yield a 20 mm tall mesh: the bounding height was about 20.78 mm, and the full string was about 104.74 mm wide. Uppercase letters, lowercase letters and descenders have different extents, so a single size parameter cannot predict the outside bounding box of an arbitrary string.&lt;/p&gt;

&lt;p&gt;This matters when lettering has to fit a recess or a fixed plate. Compare the &lt;em&gt;complete string&lt;/em&gt; width and height against the available space, then resize and regenerate deliberately. Depth is a separate axis: increasing it from 1 mm to 3 mm makes a thicker standing letter, but it does not widen the narrowest stroke in the XY plane, so it cannot rescue an outline that is too thin to print.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Stroke width decides more than triangle count
&lt;/h2&gt;

&lt;p&gt;For FDM, the useful starting check is the narrowest stroke in the actual generated outline. Prusa documents an example 0.4 mm nozzle profile with roughly 0.45 mm extrusion width, where one perimeter is about 0.45 mm and two are about 0.9 mm. Those are profile-dependent reference values, not a promise that any 0.45 mm feature will print cleanly; inspect the line widths in your own slicer profile.&lt;/p&gt;

&lt;p&gt;A thin stroke can vanish during slicing while the shaded mesh still shows it. Check the counters inside &lt;code&gt;A&lt;/code&gt;, &lt;code&gt;B&lt;/code&gt;, &lt;code&gt;e&lt;/code&gt; and &lt;code&gt;R&lt;/code&gt; as well as the outer strokes: a closed counter makes a label unreadable. A sans-serif typeface avoids some fragile decorative details, but the font choice alone does not establish a minimum printable size. If a stroke is too narrow, increase the letter size or choose a more robust outline in an editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Relief depth is a layer-height decision
&lt;/h2&gt;

&lt;p&gt;Relief height is easier to reason about in layers than in abstract millimetres. At a nominal 0.2 mm layer height, a 0.8 mm raised feature is four layers and 1.2 mm is six. That arithmetic helps you plan an experiment; it is not a tested print profile. First-layer adhesion, nozzle width, material and slicer settings still dominate the outcome. Start with a small sample containing the most difficult characters before committing to a full sign.&lt;/p&gt;

&lt;p&gt;Printing the flat backs of the letters against the build plate is usually the simplest orientation to inspect. If you add a backing plate, do the union as an explicit modeling step and examine the sliced layers through the join — visually overlapping a plate and the letters is not evidence of a clean solid.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What this measurement does not establish
&lt;/h2&gt;

&lt;p&gt;Triangle count, bounding extents and a successful file parse say nothing about whether the object is watertight, whether the letters are joined, or whether a printed part will survive handling. We have not physically printed the example projects described here; they are preparation decisions, not print results.&lt;/p&gt;

&lt;p&gt;Before distributing your own file, open it in a slicer, confirm every intended letter and counter is present, review the first layer for adhesion and the later layers for missing strokes, and check the supports at your chosen scale. When you change the string or size, save the output under a distinct filename so an older test does not end up on the printer.&lt;/p&gt;

&lt;p&gt;The useful deliverable is a mesh whose dimensions and limits you have measured, not just a file with an &lt;code&gt;.stl&lt;/code&gt; extension.&lt;/p&gt;

&lt;h3&gt;
  
  
  References and disclosure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.prusa3d.com/article/corrupted-3d-models-for-printing_2205" rel="noopener noreferrer"&gt;Prusa: corrupted 3D models for printing (mesh-check reference)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://voxel3d.app/text-stl" rel="noopener noreferrer"&gt;Voxel3D text-to-STL tool&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post was drafted with AI assistance from the project's tool documentation and its recorded browser measurement. The inspection script is a standalone reader for binary STL files. All model illustrations in this project are digital renders, not photographs of a physical print.&lt;/p&gt;

</description>
      <category>python</category>
      <category>3dprinting</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why an image-generated GLB needs more than an STL export button</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Sun, 08 Nov 2026 12:27:11 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/why-an-image-generated-glb-needs-more-than-an-stl-export-button-a17</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/why-an-image-generated-glb-needs-more-than-an-stl-export-button-a17</guid>
      <description>&lt;p&gt;A textured 3D preview can look convincing while still being a poor input for a slicer. The preview answers whether an asset reads well on screen. A printable mesh also needs a deliberate scale, closed surfaces, consistent orientation and geometry that survives the chosen print process.&lt;/p&gt;

&lt;p&gt;This development note comes from the Voxel3D example-asset pipeline. The starting assets were generated from reference images; the printable editions were prepared separately. For the earlier image-selection and generation steps, the &lt;a href="https://voxel3d.app/3d-model-from-image" rel="noopener noreferrer"&gt;3d model from image&lt;/a&gt; guide provides the context. This post focuses on what happens after the GLB exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Validate the geometry instead of trusting the render
&lt;/h2&gt;

&lt;p&gt;The first pass should produce a report, not silently alter the mesh. Here is a small check using Python, NumPy and Trimesh:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
&lt;span class="nb"&gt;.&lt;/span&gt; .venv/bin/activate
python &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install &lt;/span&gt;trimesh numpy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# inspect_mesh.py
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;trimesh&lt;/span&gt;

&lt;span class="n"&gt;mesh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;trimesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;force&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mesh&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_empty&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;faces&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;No triangle mesh found&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;finite&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isfinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vertices&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="n"&gt;report&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;triangles&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;faces&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;finite_vertices&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;finite&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;watertight&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_watertight&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;winding_consistent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_winding_consistent&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;volume&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;finite&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;extents&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;mesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;extents&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;finite&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;indent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;finite&lt;/span&gt;
    &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;watertight&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;winding_consistent&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;volume&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mesh needs inspection before printing&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it against the file you intend to distribute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python inspect_mesh.py explorer.stl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the prepared Trail Explorer STL in this project, the check returned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"triangles"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;99830&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"finite_vertices"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"watertight"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"winding_consistent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"volume"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;21507.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"extents"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;44.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;31.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;90.3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Those extents are millimetres because the preparation pipeline deliberately scaled that mesh for millimetre-based printing. An STL file does not carry a dependable unit declaration: a different file needs its own scale check.&lt;/p&gt;

&lt;p&gt;This is an automated geometry result, not a physical print test. It does not establish support placement, minimum wall thickness, tolerances or how a particular printer will reproduce the face and hands.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Make coordinate and scale decisions explicit
&lt;/h2&gt;

&lt;p&gt;In this pipeline, the source GLB was loaded as a scene, its transformed mesh parts were collected, and the coordinates were converted from the glTF orientation to the printing orientation. Scaling happened before voxel reconstruction, so the voxel pitch had a physical meaning.&lt;/p&gt;

&lt;p&gt;The important relationship is between the smallest feature you want to keep and the reconstruction pitch. A narrow connection that occupies too few voxels can disappear. Making the file smaller is a poor trade if it disconnects a hand from an arm or closes an opening in a terrain piece.&lt;/p&gt;

&lt;p&gt;After any orientation or scale change, inspect the bounding dimensions and the contact with the build plate. A numeric validation pass cannot decide whether a character is facing the right direction or whether the base is useful for your intended print.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Reconstruct first, then smooth the mesh
&lt;/h2&gt;

&lt;p&gt;One concrete failure in this project's conversion work was applying smoothing to a floating-point voxel field before extracting the surface. Thin connections could be lost, and degenerate geometry appeared in the resulting mesh.&lt;/p&gt;

&lt;p&gt;The retained approach extracted a surface from the binary solid field, then applied Taubin smoothing to the mesh. A minimal illustration of that order of operations, using Trimesh’s default smoothing factors, is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;trimesh&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skimage&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;measure&lt;/span&gt;

&lt;span class="c1"&gt;# `solid` is the prepared boolean voxel grid.
# `pitch_mm` is the physical spacing chosen before reconstruction.
&lt;/span&gt;&lt;span class="n"&gt;vertices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;faces&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;measure&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;marching_cubes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;solid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uint8&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;spacing&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pitch_mm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pitch_mm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pitch_mm&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;trimesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Trimesh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;vertices&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;vertices&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;faces&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;faces&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;process&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;invert&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;trimesh&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;smoothing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter_taubin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iterations&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This illustrates the order of operations rather than reproducing the complete conversion script. It assumes the solid field has already been constructed and that &lt;code&gt;pitch_mm&lt;/code&gt; has been selected for the model. It also requires scikit-image. The result still needs the checks from the first section; these settings are not a universal recipe for arbitrary meshes.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Put a guard around decimation
&lt;/h2&gt;

&lt;p&gt;A triangle target is a budget, not a correctness condition. Some of the project's meshes retained internal cavity surfaces, and reducing the triangle count could open a seam. The pipeline kept the simpler candidate only when the basic geometry checks still passed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;candidate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;simplify_quadric_decimation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;face_count&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;120_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_watertight&lt;/span&gt;
    &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_winding_consistent&lt;/span&gt;
    &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;candidate&lt;/span&gt;
&lt;span class="c1"&gt;# Otherwise keep the previous mesh and record why the candidate was rejected.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Trimesh's decimation backend requires its optional simplification dependency. Even when a candidate passes these checks, compare its silhouette and small details with the previous version. A closed mesh can still be the wrong shape.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Keep the preview and printing deliverables distinct
&lt;/h2&gt;

&lt;p&gt;The browser preview, the full textured asset and the prepared STL have different jobs. A lower-weight GLB is useful for checking appearance without loading the largest file. The STL edition is geometry for a slicer and does not preserve the coloured appearance of the textured preview.&lt;/p&gt;

&lt;p&gt;For the six example assets in this project, the preparation records keep each model's dimensions, triangle count and mesh-check results. That makes it possible to describe a download precisely and to distinguish a render from evidence of an actual print.&lt;/p&gt;

&lt;p&gt;Before distributing your own file, inspect the slice layer by layer, choose supports for the printer and material, and revisit fragile features at the final scale. The useful deliverable is a model with known preparation steps and limits, rather than just a file with an &lt;code&gt;.stl&lt;/code&gt; extension.&lt;/p&gt;

&lt;h3&gt;
  
  
  References and disclosure
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://trimesh.org/trimesh.html" rel="noopener noreferrer"&gt;Trimesh documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://scikit-image.org/docs/stable/api/skimage.measure.html#skimage.measure.marching_cubes" rel="noopener noreferrer"&gt;scikit-image marching cubes documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://help.prusa3d.com/article/corrupted-3d-models-for-printing_2205" rel="noopener noreferrer"&gt;Prusa: corrupted 3D models for printing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post was drafted and published with AI assistance from the project's conversion source code and validation records. The inspection script was run against the prepared example STL. Model illustrations are digital renders, not photographs of a physical print.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>3dprinting</category>
    </item>
    <item>
      <title>From Reference Image to 3D Asset: A Practical Workflow for Developers</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Sat, 07 Nov 2026 08:23:35 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/from-reference-image-to-3d-asset-a-practical-workflow-for-developers-1cd</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/from-reference-image-to-3d-asset-a-practical-workflow-for-developers-1cd</guid>
      <description>&lt;p&gt;A game prototype can have working movement, collision detection, and a playable level—and still be full of placeholder cubes.&lt;/p&gt;

&lt;p&gt;Creating custom 3D assets takes a different set of skills from writing code. If you already have a reference image, image-to-3D generation offers a way to get an initial mesh into your project and start evaluating it.&lt;/p&gt;

&lt;p&gt;That is the workflow behind &lt;a href="https://voxel3d.app/" rel="noopener noreferrer"&gt;Voxel3D, an image-to-3D converter&lt;/a&gt;: upload an image, inspect the generated model in your browser, and download a file to continue working in your editor.&lt;/p&gt;

&lt;p&gt;Here is a practical approach to using that workflow, including the checks that matter before an asset reaches your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with one clearly defined object
&lt;/h2&gt;

&lt;p&gt;A useful first experiment is a simple prop: a treasure chest, a stylized sword, or a small decorative object.&lt;/p&gt;

&lt;p&gt;Choose a reference image with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One main subject.&lt;/li&gt;
&lt;li&gt;A clear silhouette.&lt;/li&gt;
&lt;li&gt;Soft, even lighting.&lt;/li&gt;
&lt;li&gt;Minimal obstruction from other objects.&lt;/li&gt;
&lt;li&gt;A view that reveals some depth.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A three-quarter view can provide more shape information than a straight-on image. Transparent surfaces, strong reflections, and overlapping objects make the task harder.&lt;/p&gt;

&lt;p&gt;Voxel3D accepts JPEG, PNG, and WebP images up to 6 MB.&lt;/p&gt;

&lt;p&gt;The input matters because a single image only shows part of an object. The generator must infer everything outside that view, including the back and underside.&lt;/p&gt;

&lt;p&gt;Treat those hidden surfaces as something to inspect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate, then rotate the result
&lt;/h2&gt;

&lt;p&gt;After uploading your image and signing in, generate the model and examine it in the interactive preview.&lt;/p&gt;

&lt;p&gt;The first check is whether the object holds up when you move away from the original camera angle.&lt;/p&gt;

&lt;p&gt;Look at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The silhouette from the side and back.&lt;/li&gt;
&lt;li&gt;The thickness of blades, handles, and other narrow parts.&lt;/li&gt;
&lt;li&gt;Openings that should remain open.&lt;/li&gt;
&lt;li&gt;Details that may have merged into nearby geometry.&lt;/li&gt;
&lt;li&gt;The underside of the object.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://voxel3d.app/" rel="noopener noreferrer"&gt;Voxel3D website&lt;/a&gt; includes rotatable examples generated from individual images, so you can explore this inspection process before uploading your own reference.&lt;/p&gt;

&lt;p&gt;For a prototype, the useful question is: does this asset communicate the right shape at the distance where players or users will see it?&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose an export format for the next tool
&lt;/h2&gt;

&lt;p&gt;Voxel3D provides GLB and OBJ downloads when those formats are available for the generated result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GLB&lt;/strong&gt; is a convenient starting point for textured assets because it can package geometry, materials, and textures into one file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OBJ&lt;/strong&gt; is useful for mesh editing and workflows that already support Wavefront files. Keep any accompanying material and texture files together.&lt;/p&gt;

&lt;p&gt;For a browser-based project, GLB is a practical format to evaluate. For a Blender workflow, either format may fit, depending on what you plan to edit.&lt;/p&gt;

&lt;p&gt;If your destination is Unity, use a compatible glTF importer for GLB files and check the imported materials under your scene lighting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Budget time for asset preparation
&lt;/h2&gt;

&lt;p&gt;Downloading a model is the beginning of integration.&lt;/p&gt;

&lt;p&gt;Before using it in a game or web experience, check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scale:&lt;/strong&gt; Does it fit the scene?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orientation:&lt;/strong&gt; Is it facing the expected direction?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Origin or pivot:&lt;/strong&gt; Will placement and rotation behave correctly?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mesh density:&lt;/strong&gt; Is the geometry appropriate for the target device?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Materials:&lt;/strong&gt; Does it look right under your lighting?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File size:&lt;/strong&gt; Is the download reasonable for your application?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a small background prop, simplifying geometry and reducing texture sizes may matter more than preserving every generated detail.&lt;/p&gt;

&lt;p&gt;For 3D printing, add a separate preparation step: verify dimensions, repair holes, inspect wall thickness, and export the prepared mesh to STL. A generated visual asset still needs those checks before slicing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this workflow fits
&lt;/h2&gt;

&lt;p&gt;Image-to-3D generation is useful when you need an initial asset to test an idea: a game prop, a scene element, or an object for an interactive demo.&lt;/p&gt;

&lt;p&gt;It also gives you something concrete to evaluate. You can place the model in context, identify which details matter, and decide where manual editing is worth the effort.&lt;/p&gt;

&lt;p&gt;The key is to judge the result in its destination—not just in the generation preview.&lt;/p&gt;

&lt;p&gt;If you have a reference image ready, you can explore the workflow at &lt;strong&gt;&lt;a href="https://voxel3d.app/" rel="noopener noreferrer"&gt;Voxel3D — turn an image into a 3D model&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;What takes the most time in your own 3D asset workflow: creating the first mesh, cleaning it up, or getting it into the application?&lt;/p&gt;

</description>
      <category>3d</category>
      <category>webdev</category>
      <category>ai</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>SCP Commands That Still Matter, and When rsync Beats Them</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 03 Nov 2026 07:16:19 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/scp-commands-that-still-matter-and-when-rsync-beats-them-22cf</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/scp-commands-that-still-matter-and-when-rsync-beats-them-22cf</guid>
      <description>&lt;p&gt;&lt;code&gt;scp&lt;/code&gt; is the command everyone learns first and then quietly stops using, usually after the first time a transfer dies at 90% and has to start over. But it is still the lowest-friction way to move a file between two machines, because it needs nothing on the remote side except &lt;code&gt;sshd&lt;/code&gt;. &lt;code&gt;rsync&lt;/code&gt; needs &lt;code&gt;rsync&lt;/code&gt; installed at both ends. &lt;code&gt;sftp&lt;/code&gt; needs an interactive session or a batch file.&lt;/p&gt;

&lt;p&gt;This is a reference for the cases where &lt;code&gt;scp&lt;/code&gt; is genuinely the right tool, plus the exact points where it stops being one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two protocols hiding behind one command
&lt;/h2&gt;

&lt;p&gt;Since OpenSSH 9.0 (April 2022), &lt;code&gt;scp&lt;/code&gt; transfers files over the &lt;strong&gt;SFTP protocol&lt;/strong&gt; by default. Before that, it used the old RCP-derived protocol, which had a nasty class of path-traversal bugs (CVE-2019-6110, CVE-2019-6111, CVE-2019-6109).&lt;/p&gt;

&lt;p&gt;You can check what you are running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-V&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the result is older than 9.0, &lt;code&gt;scp&lt;/code&gt; still uses the legacy protocol unless you force the new one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="nt"&gt;-s&lt;/span&gt; sftp file.txt user@host:/tmp/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This matters in two practical ways. First, the legacy protocol can silently overwrite files outside the target directory when the server is malicious — not your usual threat model, but relevant if you pull from untrusted hosts. Second, the protocol change altered how some wildcard and quoting edge cases behave.&lt;/p&gt;

&lt;h2&gt;
  
  
  The flags you will actually type
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="nb"&gt;source &lt;/span&gt;user@host:/path/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy the other way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp user@host:/path/file.txt ./local-dir/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-P 2222&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remote port (&lt;strong&gt;capital P&lt;/strong&gt; — &lt;code&gt;ssh&lt;/code&gt; uses lowercase &lt;code&gt;-p&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-r&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Recurse into directories&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-p&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Preserve modification times and permissions (&lt;strong&gt;lowercase&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-C&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compress in transit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-l 8000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Bandwidth limit in Kbit/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-q&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Quiet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-i key.pem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Identity file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-J bastion&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Jump through a bastion host (OpenSSH 7.3+)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Route traffic between two remote hosts through your machine&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;-p&lt;/code&gt; / &lt;code&gt;-P&lt;/code&gt; collision is the single most common source of confusion. &lt;code&gt;-P&lt;/code&gt; is the port, &lt;code&gt;-p&lt;/code&gt; preserves attributes. Get it backwards and you will either connect to port 22 or lose your timestamps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Copying between two remote hosts
&lt;/h2&gt;

&lt;p&gt;The naive version routes the data through your laptop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp user1@hostA:/data/dump.sql user2@hostB:/backup/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is &lt;code&gt;-3&lt;/code&gt; behaviour by default (in older OpenSSH it was the only behaviour). If both hosts can reach each other, tell &lt;code&gt;scp&lt;/code&gt; to connect them directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="nt"&gt;-R&lt;/span&gt; user1@hostA:/data/dump.sql user2@hostB:/backup/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-R&lt;/code&gt; requires that &lt;code&gt;hostA&lt;/code&gt; can resolve and authenticate to &lt;code&gt;hostB&lt;/code&gt;. In a datacenter that is usually true and it is dramatically faster. Across the public internet it usually is not, and you want the &lt;code&gt;-3&lt;/code&gt; route instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quoting is where scp hurts
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;scp&lt;/code&gt; passes the remote path to a &lt;strong&gt;remote shell&lt;/strong&gt;, so the string goes through two rounds of expansion — your local shell, then the remote one. Spaces and globs need double escaping:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="s2"&gt;"user@host:/path/with&lt;/span&gt;&lt;span class="se"&gt;\ &lt;/span&gt;&lt;span class="s2"&gt;spaces/file.txt"&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the remote glob is expanded remotely, which is what you want:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="s2"&gt;"user@host:/var/log/*.gz"&lt;/span&gt; ./logs/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But a local glob in the destination position is a common mistake:&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="c"&gt;# wrong: the star is sent to the remote shell verbatim in some versions&lt;/span&gt;
scp file1 file2 user@host:/backup/&lt;span class="k"&gt;*&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;scp file1 file2 user@host:/backup/&lt;/code&gt; and let the directory name be the target.&lt;/p&gt;

&lt;h2&gt;
  
  
  What &lt;code&gt;scp&lt;/code&gt; cannot do
&lt;/h2&gt;

&lt;p&gt;This is the part that pushes people to &lt;code&gt;rsync&lt;/code&gt;, and it is worth being blunt about the limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No resume.&lt;/strong&gt; A dropped connection means starting the file over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No exclusion patterns.&lt;/strong&gt; There is no &lt;code&gt;--exclude&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No delta transfer.&lt;/strong&gt; Every byte is sent, every time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No dry run.&lt;/strong&gt; You cannot preview what would change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Poor feedback.&lt;/strong&gt; One progress line per file, no aggregate ETA.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a 400 MB log file over a flaky connection, &lt;code&gt;scp&lt;/code&gt; is the wrong tool. For a 12 KB config file, it is the right one and &lt;code&gt;rsync&lt;/code&gt; is overkill.&lt;/p&gt;

&lt;h2&gt;
  
  
  rsync as the upgrade path
&lt;/h2&gt;

&lt;p&gt;The minimum useful invocation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rsync &lt;span class="nt"&gt;-avz&lt;/span&gt; &lt;span class="nt"&gt;--partial&lt;/span&gt; &lt;span class="nt"&gt;--progress&lt;/span&gt; ./build/ user@host:/var/www/app/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-a&lt;/code&gt; = archive: recurse, preserve symlinks, permissions, times, owner/group. It implies &lt;code&gt;-r -l -p -t -g -o -D&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-v&lt;/code&gt; verbose, &lt;code&gt;-z&lt;/code&gt; compress.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--partial&lt;/code&gt; keeps a partially transferred file so a retry resumes instead of restarting. This is the flag that solves the actual &lt;code&gt;scp&lt;/code&gt; pain point.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Exclusions, which &lt;code&gt;scp&lt;/code&gt; has no answer for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rsync &lt;span class="nt"&gt;-avz&lt;/span&gt; &lt;span class="nt"&gt;--exclude&lt;/span&gt; &lt;span class="s1"&gt;'node_modules'&lt;/span&gt; &lt;span class="nt"&gt;--exclude&lt;/span&gt; &lt;span class="s1"&gt;'.git'&lt;/span&gt; &lt;span class="nt"&gt;--exclude&lt;/span&gt; &lt;span class="s1"&gt;'*.log'&lt;/span&gt; ./ user@host:/srv/app/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dry run before a destructive sync:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rsync &lt;span class="nt"&gt;-avzn&lt;/span&gt; &lt;span class="nt"&gt;--delete&lt;/span&gt; ./ user@host:/srv/app/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-n&lt;/code&gt; (or &lt;code&gt;--dry-run&lt;/code&gt;) prints what would happen. &lt;strong&gt;Never run &lt;code&gt;--delete&lt;/code&gt; without &lt;code&gt;-n&lt;/code&gt; first.&lt;/strong&gt; A trailing-slash mistake turns &lt;code&gt;rsync -a ./src host:/dst&lt;/code&gt; into "create &lt;code&gt;/dst/src&lt;/code&gt;" instead of "sync the contents of &lt;code&gt;src&lt;/code&gt; into &lt;code&gt;/dst&lt;/code&gt;", and combined with &lt;code&gt;--delete&lt;/code&gt; that is how people erase directories.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the remote has no rsync
&lt;/h2&gt;

&lt;p&gt;Common on appliances, minimal containers, and older NAS firmware. Two workarounds that need nothing but &lt;code&gt;ssh&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;Stream a tar:&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;tar &lt;/span&gt;czf - ./project | ssh user@host &lt;span class="s1"&gt;'tar xzf - -C /srv/'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Resume a large file with &lt;code&gt;dd&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh user@host &lt;span class="s1"&gt;'tail -c +$(( $(stat -c%s /srv/big.iso 2&amp;gt;/dev/null || echo 0) + 1 ))'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; big.iso
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;dd&lt;/code&gt; trick is fragile and easy to get wrong by one byte. If resumption matters, install &lt;code&gt;rsync&lt;/code&gt; on the remote; it is a package in every distribution and a &lt;code&gt;brew install&lt;/code&gt; on macOS.&lt;/p&gt;

&lt;h2&gt;
  
  
  SFTP when you want to look around
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;scp&lt;/code&gt; is one-shot. If you need to list, &lt;code&gt;cd&lt;/code&gt;, and fetch several files, the interactive client is faster than chaining six &lt;code&gt;scp&lt;/code&gt; commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sftp user@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;cd&lt;/code&gt;, &lt;code&gt;get&lt;/code&gt;, &lt;code&gt;put&lt;/code&gt;, &lt;code&gt;lcd&lt;/code&gt;, &lt;code&gt;lls&lt;/code&gt;. Batch mode skips the prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sftp &lt;span class="nt"&gt;-b&lt;/span&gt; commands.txt user@host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both &lt;code&gt;scp&lt;/code&gt; and &lt;code&gt;sftp&lt;/code&gt; speak the same subsystem, so if one works the other will.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Port goes in &lt;code&gt;-P&lt;/code&gt;, attributes go in &lt;code&gt;-p&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;-C&lt;/code&gt; for text-heavy transfers, skip it for already-compressed files (&lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.zip&lt;/code&gt;, images) — it just burns CPU.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;-J&lt;/code&gt; instead of hand-rolling a &lt;code&gt;ProxyCommand&lt;/code&gt; for a single hop.&lt;/li&gt;
&lt;li&gt;Reach for &lt;code&gt;rsync --partial&lt;/code&gt; the moment a transfer is large or the link is unreliable.&lt;/li&gt;
&lt;li&gt;Test &lt;code&gt;--delete&lt;/code&gt; with &lt;code&gt;-n&lt;/code&gt; every single time.&lt;/li&gt;
&lt;li&gt;If you script this, put the host in &lt;code&gt;~/.ssh/config&lt;/code&gt; so you stop repeating &lt;code&gt;-i&lt;/code&gt; and &lt;code&gt;-P&lt;/code&gt; flags.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last point is worth more than it sounds: a host alias turns&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="nt"&gt;-P&lt;/span&gt; 2222 &lt;span class="nt"&gt;-i&lt;/span&gt; ~/.ssh/prod_key &lt;span class="nt"&gt;-J&lt;/span&gt; bastion user@10.0.3.14:/var/log/app.log &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;into&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp prod:/var/log/app.log &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want a starting point for the config file, there is a working template with &lt;code&gt;Host&lt;/code&gt;, &lt;code&gt;ProxyJump&lt;/code&gt;, &lt;code&gt;ServerAliveInterval&lt;/code&gt; and per-host keys at &lt;a href="https://dartshell.com/tools/ssh-config-example" rel="noopener noreferrer"&gt;dartshell.com/tools/ssh-config-example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For building the &lt;code&gt;scp&lt;/code&gt; command itself — including the port, key, and jump-host flags without looking them up — there is a form at &lt;a href="https://dartshell.com/tools/scp-command-generator" rel="noopener noreferrer"&gt;dartshell.com/tools/scp-command-generator&lt;/a&gt;. It is part of &lt;a href="https://dartshell.com" rel="noopener noreferrer"&gt;DartShell&lt;/a&gt;, a native macOS client that handles SSH, SFTP, RDP, VNC and serial sessions in one window, which is where I ended up putting all of these commands after typing them too many times.&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>cli</category>
      <category>linux</category>
      <category>devops</category>
    </item>
    <item>
      <title>An ~/.ssh/config That Scales: Hosts, ProxyJump, Keepalive and Per-Host Keys</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 03 Nov 2026 01:59:27 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/an-sshconfig-that-scales-hosts-proxyjump-keepalive-and-per-host-keys-52gl</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/an-sshconfig-that-scales-hosts-proxyjump-keepalive-and-per-host-keys-52gl</guid>
      <description>&lt;p&gt;&lt;code&gt;~/.ssh/config&lt;/code&gt; is the highest-leverage file in a developer's home directory. Ten lines replace a page of remembered flags, and a well-written config keeps working when the server list grows from three machines to fifty.&lt;/p&gt;

&lt;p&gt;This is the structure that holds up, plus the parts that quietly break.&lt;/p&gt;

&lt;h2&gt;
  
  
  The basics that everything builds on
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; db-prod
  &lt;span class="k"&gt;HostName&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.20.4.11
  &lt;span class="k"&gt;User&lt;/span&gt; deploy
  &lt;span class="k"&gt;Port&lt;/span&gt; &lt;span class="m"&gt;2222&lt;/span&gt;
  &lt;span class="k"&gt;IdentityFile&lt;/span&gt; ~/.ssh/id_ed25519_deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;ssh db-prod&lt;/code&gt; does what &lt;code&gt;ssh deploy@10.20.4.11 -p 2222 -i ~/.ssh/id_ed25519_deploy&lt;/code&gt; did. Two rules make the rest predictable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Host&lt;/code&gt; is a pattern, not a name.&lt;/strong&gt; &lt;code&gt;Host db-*&lt;/code&gt; matches any alias starting with &lt;code&gt;db-&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The first matching value wins.&lt;/strong&gt; SSH reads the file top to bottom and keeps the first value it finds for each keyword. Put specific blocks above wildcard blocks, or the wildcard wins and you will spend an hour wondering why &lt;code&gt;User&lt;/code&gt; is wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second rule is why the most common config mistake looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; *
  &lt;span class="k"&gt;User&lt;/span&gt; deploy

&lt;span class="k"&gt;Host&lt;/span&gt; db-prod
  &lt;span class="k"&gt;User&lt;/span&gt; postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;db-prod&lt;/code&gt; still connects as &lt;code&gt;deploy&lt;/code&gt;, because &lt;code&gt;User deploy&lt;/code&gt; was set first. Move &lt;code&gt;Host *&lt;/code&gt; to the bottom.&lt;/p&gt;

&lt;h2&gt;
  
  
  Jump hosts without retyping them
&lt;/h2&gt;

&lt;p&gt;Any machine behind a bastion deserves a permanent alias:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; bastion
  &lt;span class="k"&gt;HostName&lt;/span&gt; bastion.example.com
  &lt;span class="k"&gt;User&lt;/span&gt; ops

&lt;span class="k"&gt;Host&lt;/span&gt; db-prod
  &lt;span class="k"&gt;HostName&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.20.4.11
  &lt;span class="k"&gt;User&lt;/span&gt; deploy
  &lt;span class="k"&gt;ProxyJump&lt;/span&gt; bastion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Chains work: &lt;code&gt;ProxyJump bastion1,bastion2&lt;/code&gt;. Each hop is resolved from the previous one, so &lt;code&gt;db-prod&lt;/code&gt; keeps its private &lt;code&gt;HostName&lt;/code&gt; and nothing about it needs to be routable.&lt;/p&gt;

&lt;p&gt;The old &lt;code&gt;ProxyCommand nc -X connect -x ...&lt;/code&gt; recipe still appears in tutorials. &lt;code&gt;ProxyJump&lt;/code&gt; replaced it in OpenSSH 7.3 (2016) and is faster: it reuses a single transport rather than piping through a subprocess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keepalive, so idle sessions survive
&lt;/h2&gt;

&lt;p&gt;A session that dies after five minutes of inactivity is usually NAT or a firewall dropping the flow, not the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; *
  &lt;span class="k"&gt;ServerAliveInterval&lt;/span&gt; &lt;span class="m"&gt;30&lt;/span&gt;
  &lt;span class="k"&gt;ServerAliveCountMax&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
  &lt;span class="k"&gt;TCPKeepAlive&lt;/span&gt; &lt;span class="no"&gt;yes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ServerAliveInterval&lt;/code&gt; sends a lightweight keepalive every 30 seconds; &lt;code&gt;ServerAliveCountMax 3&lt;/code&gt; drops the connection after three unanswered ones. Ninety seconds of silence means the link is genuinely gone, which is far more useful than a hung terminal.&lt;/p&gt;

&lt;p&gt;For connections you open dozens of times a day, add multiplexing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; *
  &lt;span class="k"&gt;ControlMaster&lt;/span&gt; &lt;span class="no"&gt;auto&lt;/span&gt;
  &lt;span class="k"&gt;ControlPath&lt;/span&gt; ~/.ssh/cm-%r@%h:%p
  &lt;span class="k"&gt;ControlPersist&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;m
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first connection pays the handshake; the rest reuse the socket. &lt;code&gt;scp&lt;/code&gt;, &lt;code&gt;git fetch&lt;/code&gt; and a shell on the same host all share one authenticated session. The catch is that a stale socket leaves you with &lt;code&gt;Control socket connect: Connection refused&lt;/code&gt; long after the network changed — remove &lt;code&gt;~/.ssh/cm-*&lt;/code&gt; when that happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Per-host keys, and why they get ignored
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; github-work
  &lt;span class="k"&gt;HostName&lt;/span&gt; github.com
  &lt;span class="k"&gt;User&lt;/span&gt; git
  &lt;span class="k"&gt;IdentityFile&lt;/span&gt; ~/.ssh/id_ed25519_work
  &lt;span class="k"&gt;IdentitiesOnly&lt;/span&gt; &lt;span class="no"&gt;yes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without &lt;code&gt;IdentitiesOnly yes&lt;/code&gt;, the agent offers every key it holds, and servers with &lt;code&gt;MaxAuthTries&lt;/code&gt; set to a low number reject the connection before it reaches the right key. &lt;code&gt;-v&lt;/code&gt; shows &lt;code&gt;Offering public key: ...&lt;/code&gt; repeated until the server gives up. That single line prevents it.&lt;/p&gt;

&lt;p&gt;The same block is how you keep two GitHub accounts apart: &lt;code&gt;git@github-work:org/repo.git&lt;/code&gt; picks the work key, &lt;code&gt;git@github.com:org/repo.git&lt;/code&gt; picks the personal one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wildcards for groups of machines
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; *.staging.example.com
  &lt;span class="k"&gt;User&lt;/span&gt; deploy
  &lt;span class="k"&gt;StrictHostKeyChecking&lt;/span&gt; accept-new

&lt;span class="k"&gt;Host&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.20.*
  &lt;span class="k"&gt;User&lt;/span&gt; ops
  &lt;span class="k"&gt;ForwardAgent&lt;/span&gt; &lt;span class="no"&gt;no&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;StrictHostKeyChecking accept-new&lt;/code&gt; trusts a host on first sight and refuses if the key later changes. That is the sane middle ground for ephemeral CI-style hosts: no prompt on first connect, still protected against a swapped key.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ForwardAgent no&lt;/code&gt; on a private range is a deliberate choice — agent forwarding lets anyone with root on that host use your key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forwarding that lives in the config
&lt;/h2&gt;

&lt;p&gt;Tunnels you open every morning belong in the config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; db-prod
  &lt;span class="k"&gt;HostName&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.20.4.11
  &lt;span class="k"&gt;ProxyJump&lt;/span&gt; bastion
  &lt;span class="k"&gt;LocalForward&lt;/span&gt; &lt;span class="m"&gt;13306&lt;/span&gt; &lt;span class="m"&gt;127&lt;/span&gt;.0.0.1:3306
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;ssh db-prod&lt;/code&gt; gives you a shell &lt;em&gt;and&lt;/em&gt; a working local database port. For tunnel-only hosts, add the alias:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; db-tunnel
  &lt;span class="k"&gt;HostName&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.20.4.11
  &lt;span class="k"&gt;ProxyJump&lt;/span&gt; bastion
  &lt;span class="k"&gt;LocalForward&lt;/span&gt; &lt;span class="m"&gt;13306&lt;/span&gt; &lt;span class="m"&gt;127&lt;/span&gt;.0.0.1:3306
  &lt;span class="k"&gt;ExitOnForwardFailure&lt;/span&gt; &lt;span class="no"&gt;yes&lt;/span&gt;
  &lt;span class="k"&gt;RequestTTY&lt;/span&gt; &lt;span class="no"&gt;no&lt;/span&gt;
  &lt;span class="k"&gt;RemoteCommand&lt;/span&gt; cat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ExitOnForwardFailure yes&lt;/code&gt; is underrated: without it, SSH happily connects, fails to bind the port, and leaves you with a shell and no tunnel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Debugging order
&lt;/h2&gt;

&lt;p&gt;When an alias misbehaves, this sequence finds the cause in under a minute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-G&lt;/span&gt; db-prod          &lt;span class="c"&gt;# print the effective config after all merging&lt;/span&gt;
ssh &lt;span class="nt"&gt;-v&lt;/span&gt; db-prod 2&amp;gt;&amp;amp;1 | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; offering   &lt;span class="c"&gt;# which keys were offered&lt;/span&gt;
ssh &lt;span class="nt"&gt;-vvv&lt;/span&gt; db-prod        &lt;span class="c"&gt;# full handshake, including ProxyJump hops&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ssh -G&lt;/code&gt; is the important one. It shows what SSH actually decided after reading every file, which resolves "I set it but it is not applied" instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write it once, generate it the same way
&lt;/h2&gt;

&lt;p&gt;The keywords are stable, but the block for a jump host plus forwarding plus a specific key has a lot of surface for a typo. I generate the skeleton with &lt;a href="https://dartshell.com/tools/ssh-config-example" rel="noopener noreferrer"&gt;SSH config example generator&lt;/a&gt; and then paste it into &lt;code&gt;~/.ssh/config&lt;/code&gt; — it covers &lt;code&gt;Host&lt;/code&gt;, &lt;code&gt;HostName&lt;/code&gt;, &lt;code&gt;User&lt;/code&gt;, &lt;code&gt;Port&lt;/code&gt;, &lt;code&gt;IdentityFile&lt;/code&gt;, &lt;code&gt;ProxyJump&lt;/code&gt; and &lt;code&gt;LocalForward&lt;/code&gt; in the right order.&lt;/p&gt;

&lt;p&gt;If you connect to a lot of these hosts rather than a handful, the config file stops being enough and you want a session manager that reads it directly. That is a separate problem, but it starts from the same file, so getting the config right is never wasted work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Specific &lt;code&gt;Host&lt;/code&gt; blocks above &lt;code&gt;Host *&lt;/code&gt;, always.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;IdentitiesOnly yes&lt;/code&gt; on every block with an &lt;code&gt;IdentityFile&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ProxyJump&lt;/code&gt; instead of &lt;code&gt;ProxyCommand&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ServerAliveInterval 30&lt;/code&gt; plus &lt;code&gt;ControlMaster&lt;/code&gt; for anything used daily.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ExitOnForwardFailure yes&lt;/code&gt; on tunnel-only hosts.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ssh -G&lt;/code&gt; before you file a bug against the server.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ssh</category>
      <category>devops</category>
      <category>linux</category>
      <category>productivity</category>
    </item>
    <item>
      <title>SSH Port Forwarding: Local, Remote and Dynamic Tunnels With Real Examples</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 03 Nov 2026 01:58:49 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/ssh-port-forwarding-local-remote-and-dynamic-tunnels-with-real-examples-3367</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/ssh-port-forwarding-local-remote-and-dynamic-tunnels-with-real-examples-3367</guid>
      <description>&lt;p&gt;Three flags, three completely different behaviours, and a lot of confusion because all of them are described as "tunnels". The mental model that finally made them click for me: &lt;strong&gt;the direction is decided by which side opens the listening socket.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-L&lt;/code&gt; — your machine listens.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-R&lt;/code&gt; — the remote machine listens.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-D&lt;/code&gt; — your machine listens, but as a SOCKS proxy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else follows from that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local forwarding (&lt;code&gt;-L&lt;/code&gt;): reach a remote service
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 bastion.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Connect to &lt;code&gt;localhost:13306&lt;/code&gt; on your laptop and the traffic goes through &lt;code&gt;bastion.example.com&lt;/code&gt; to &lt;code&gt;db.internal:3306&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Resolution of &lt;code&gt;db.internal&lt;/code&gt; happens &lt;strong&gt;on the SSH server&lt;/strong&gt;, not locally. That is the whole point: the database has no public address, but the bastion can see it.&lt;/p&gt;

&lt;p&gt;Common variants:&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="c"&gt;# bind on all interfaces so a container can reach it&lt;/span&gt;
ssh &lt;span class="nt"&gt;-L&lt;/span&gt; 0.0.0.0:13306:db.internal:3306 bastion

&lt;span class="c"&gt;# pick a free local port and let ssh print it&lt;/span&gt;
ssh &lt;span class="nt"&gt;-L&lt;/span&gt; 0:db.internal:3306 bastion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;0.0.0.0&lt;/code&gt; opens a real hole.&lt;/strong&gt; Anyone on your network can use that forwarded port, and &lt;code&gt;GatewayPorts&lt;/code&gt; is disabled by default on the server for exactly this reason. Prefer &lt;code&gt;127.0.0.1&lt;/code&gt; unless you consciously need otherwise.&lt;/li&gt;
&lt;li&gt;The tunnel dies with the SSH session. If the connection drops, your local port is gone and the client sees &lt;code&gt;connection refused&lt;/code&gt; — which looks like a database outage but is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Remote forwarding (&lt;code&gt;-R&lt;/code&gt;): expose a local service to the server
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-R&lt;/span&gt; 8080:localhost:3000 user@build.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;build.example.com:8080&lt;/code&gt; reaches port 3000 on &lt;strong&gt;your&lt;/strong&gt; laptop. This is how you demo a local dev server to someone who can only reach the build box, or how you scrape a staging site from a machine inside the network.&lt;/p&gt;

&lt;p&gt;By default the remote listener binds to the server's loopback only. To bind publicly you need &lt;code&gt;-R 0.0.0.0:8080:localhost:3000&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;GatewayPorts yes&lt;/code&gt; in the server's &lt;code&gt;sshd_config&lt;/code&gt;. Without the second part the bind silently falls back to loopback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dynamic forwarding (&lt;code&gt;-D&lt;/code&gt;): a SOCKS proxy
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-D&lt;/span&gt; 1080 &lt;span class="nt"&gt;-N&lt;/span&gt; &lt;span class="nt"&gt;-C&lt;/span&gt; user@bastion.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This opens a SOCKS5 proxy on &lt;code&gt;localhost:1080&lt;/code&gt;. Any application that speaks SOCKS can now route through the bastion, resolving hostnames remotely.&lt;/p&gt;

&lt;p&gt;Use it when you need to reach &lt;em&gt;many&lt;/em&gt; internal hosts and do not want one &lt;code&gt;-L&lt;/code&gt; per service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;--socks5-hostname&lt;/span&gt; 127.0.0.1:1080 http://wiki.internal/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--socks5-hostname&lt;/code&gt; flag matters: it sends the hostname to the proxy instead of resolving it locally. Without it, &lt;code&gt;wiki.internal&lt;/code&gt; has to resolve on your machine, which is often the thing you cannot do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chaining through a jump host
&lt;/h2&gt;

&lt;p&gt;Old style, still everywhere:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 &lt;span class="nt"&gt;-J&lt;/span&gt; bastion.example.com app.internal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Modern style, cleaner, and works with keys and agent forwarding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;ProxyJump&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;bastion.example.com &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 app.internal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ProxyJump&lt;/code&gt; chains are allowed (&lt;code&gt;bastion1,bastion2&lt;/code&gt;), and the final &lt;code&gt;-L&lt;/code&gt; target is resolved from the last hop. If you forward on every hop instead, you will create tunnels you did not intend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping a tunnel alive
&lt;/h2&gt;

&lt;p&gt;Two separate problems, two separate fixes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. The SSH session idles out.&lt;/strong&gt; Add keepalives, either per-connection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;ServerAliveInterval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;30 &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;ServerAliveCountMax&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3 &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 bastion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or permanently in &lt;code&gt;~/.ssh/config&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="k"&gt;Host&lt;/span&gt; bastion
  &lt;span class="k"&gt;HostName&lt;/span&gt; bastion.example.com
  &lt;span class="k"&gt;ServerAliveInterval&lt;/span&gt; &lt;span class="m"&gt;30&lt;/span&gt;
  &lt;span class="k"&gt;ServerAliveCountMax&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. The SSH process dies and nothing restarts it.&lt;/strong&gt; Either run it under a process manager, or use &lt;code&gt;autossh&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;autossh &lt;span class="nt"&gt;-M&lt;/span&gt; 0 &lt;span class="nt"&gt;-N&lt;/span&gt; &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 bastion &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;ServerAliveInterval&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;30 &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;ServerAliveCountMax&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-M 0&lt;/code&gt; disables autossh's own echo port and lets SSH keepalives do the work. That combination is the one that survives flaky Wi-Fi without false restarts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forwarding without opening a shell
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;-N&lt;/code&gt; tells SSH not to run a remote command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-N&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="nt"&gt;-L&lt;/span&gt; 13306:db.internal:3306 bastion
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-f&lt;/code&gt; backgrounds it after authentication. Together with keepalives, this is the standard "just give me a tunnel" invocation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Debugging a tunnel that does not work
&lt;/h2&gt;

&lt;p&gt;Work down this list; it catches almost everything:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;-v&lt;/code&gt; on the SSH command. Look for &lt;code&gt;channel 2: open failed&lt;/code&gt; — that means the server could not reach the host:port you asked for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resolution side.&lt;/strong&gt; &lt;code&gt;db.internal&lt;/code&gt; resolves on the server, not locally. Test with &lt;code&gt;ssh bastion getent hosts db.internal&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local port already taken.&lt;/strong&gt; &lt;code&gt;lsof -iTCP:13306 -sTCP:LISTEN&lt;/code&gt;. SSH only warns, and only if you read the output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;AllowTcpForwarding&lt;/code&gt;&lt;/strong&gt; in the server config. Many hardened servers set it to &lt;code&gt;no&lt;/code&gt;, and the error is a generic channel failure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;PermitOpen&lt;/code&gt;&lt;/strong&gt; restricting destinations. You will get "administratively prohibited" in verbose mode.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Building the command correctly
&lt;/h2&gt;

&lt;p&gt;The flag order is unforgiving — put &lt;code&gt;-L&lt;/code&gt; before the host and it is parsed as a local port, put it after and it may be ignored. The target forms (&lt;code&gt;host:port&lt;/code&gt;, &lt;code&gt;host:port:host:port&lt;/code&gt;, &lt;code&gt;[ipv6]:port&lt;/code&gt;) all fail in different ways when you get the colons wrong.&lt;/p&gt;

&lt;p&gt;I use a generator for the non-trivial ones: &lt;a href="https://dartshell.com/tools/ssh-port-forward-command-generator" rel="noopener noreferrer"&gt;SSH port forward command generator&lt;/a&gt;. It emits the full command with key file and jump host options, which is faster than re-reading the man page for the fourth time this month.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;Who listens&lt;/th&gt;
&lt;th&gt;Typical use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-L 13306:db:3306&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;your machine&lt;/td&gt;
&lt;td&gt;reach a private service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-R 8080:localhost:3000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;remote machine&lt;/td&gt;
&lt;td&gt;show a local service to a remote host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-D 1080&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;your machine (SOCKS5)&lt;/td&gt;
&lt;td&gt;browse a whole internal network&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Add &lt;code&gt;-N&lt;/code&gt; to skip the shell, &lt;code&gt;-f&lt;/code&gt; to background it, and keepalives to survive an idle connection. Once you know which side listens, the rest is a checklist.&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>devops</category>
      <category>linux</category>
      <category>networking</category>
    </item>
    <item>
      <title>Connection Strings for MySQL, PostgreSQL and Redis: A Practical Reference</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 03 Nov 2026 01:58:10 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/connection-strings-for-mysql-postgresql-and-redis-a-practical-reference-55il</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/connection-strings-for-mysql-postgresql-and-redis-a-practical-reference-55il</guid>
      <description>&lt;p&gt;Every database driver accepts a URL, but no two databases agree on what that URL means. You copy a &lt;code&gt;mysql://&lt;/code&gt; string into a Postgres client and get a cryptic handshake error. You paste a Redis password containing &lt;code&gt;@&lt;/code&gt; and the driver silently connects to the wrong host. These are not edge cases; they are the normal experience of moving between stacks.&lt;/p&gt;

&lt;p&gt;Here is the format each one actually expects, and the parts that break.&lt;/p&gt;

&lt;h2&gt;
  
  
  The general shape
&lt;/h2&gt;

&lt;p&gt;All three follow the same skeleton:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;scheme://[user[:password]@]host[:port][/database][?param=value]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The differences live in the scheme name, the meaning of the path segment, how TLS is expressed, and which characters are legal in the password.&lt;/p&gt;

&lt;h2&gt;
  
  
  MySQL
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql://app_user:S3cret@db.internal:3306/orders?ssl-mode=REQUIRED&amp;amp;charset=utf8mb4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Path is the database name.&lt;/strong&gt; &lt;code&gt;/orders&lt;/code&gt; selects the schema on connect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default port&lt;/strong&gt; is 3306.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TLS&lt;/strong&gt; is &lt;code&gt;ssl-mode&lt;/code&gt;, with values &lt;code&gt;DISABLED&lt;/code&gt;, &lt;code&gt;PREFERRED&lt;/code&gt;, &lt;code&gt;REQUIRED&lt;/code&gt;, &lt;code&gt;VERIFY_CA&lt;/code&gt;, &lt;code&gt;VERIFY_IDENTITY&lt;/code&gt;. &lt;code&gt;REQUIRED&lt;/code&gt; encrypts but does not verify the certificate, which is the setting people mistake for secure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;charset=utf8mb4&lt;/code&gt;&lt;/strong&gt; matters more than most guides admit. Without it, emoji and four-byte CJK characters are rejected or mangled, and the failure shows up at insert time, not connect time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Node's &lt;code&gt;mysql2&lt;/code&gt; accepts this URL directly. Go's &lt;code&gt;go-sql-driver/mysql&lt;/code&gt; does not; it wants &lt;code&gt;user:pass@tcp(host:3306)/orders?parseTime=true&lt;/code&gt; and will reject the URL form.&lt;/p&gt;

&lt;h2&gt;
  
  
  PostgreSQL
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;postgresql://app_user:S3cret@db.internal:5432/orders?sslmode=require
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Path is the database name&lt;/strong&gt;, which in Postgres is a separate namespace from the schema. If you need a non-default schema, add &lt;code&gt;&amp;amp;options=-c%20search_path%3Dreporting&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default port&lt;/strong&gt; is 5432.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TLS&lt;/strong&gt; is &lt;code&gt;sslmode&lt;/code&gt;, with &lt;code&gt;disable&lt;/code&gt;, &lt;code&gt;allow&lt;/code&gt;, &lt;code&gt;prefer&lt;/code&gt;, &lt;code&gt;require&lt;/code&gt;, &lt;code&gt;verify-ca&lt;/code&gt;, &lt;code&gt;verify-full&lt;/code&gt;. The dangerous default is &lt;code&gt;prefer&lt;/code&gt;: it uses TLS when the server offers it and silently downgrades when it does not. &lt;code&gt;verify-full&lt;/code&gt; is the only value that checks the hostname.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ssl=true&lt;/code&gt;&lt;/strong&gt; is a JDBC-ism. libpq-based clients ignore it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Password special characters are the single most common Postgres URL failure. &lt;code&gt;p@ss:word/1&lt;/code&gt; must become &lt;code&gt;p%40ss%3Aword%2F1&lt;/code&gt;. If you generate the string by hand, you will eventually ship a broken one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Redis
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;redis://:S3cret@cache.internal:6379/2
rediss://default:S3cret@cache.internal:6380/0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Redis is where the conventions diverge hardest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No username slot in the old format.&lt;/strong&gt; The user field is empty and the colon is still required: &lt;code&gt;redis://:password@host:6379&lt;/code&gt;. Drop the colon and the driver reads the password as the username, then fails authentication with a message that never mentions the missing colon.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ACL users (Redis 6+)&lt;/strong&gt; do use the username slot: &lt;code&gt;redis://reporting:S3cret@host:6379/0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Path is the database index&lt;/strong&gt;, a number &lt;code&gt;0&lt;/code&gt;–&lt;code&gt;15&lt;/code&gt; by default, not a name. &lt;code&gt;/2&lt;/code&gt; is database 2. Writing &lt;code&gt;/cache&lt;/code&gt; yields an error or silently database 0, depending on the client.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;rediss://&lt;/code&gt;&lt;/strong&gt; (two s) is TLS. A single &lt;code&gt;s&lt;/code&gt; means plaintext, and nothing warns you.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The four things that break first
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Unencoded special characters.&lt;/strong&gt; Any of &lt;code&gt;@ : / ? # [ ] %&lt;/code&gt; inside a password must be percent-encoded. &lt;code&gt;#&lt;/code&gt; truncates the URL at the fragment. &lt;code&gt;@&lt;/code&gt; splits at the wrong place. This is not a client bug; the URL grammar simply does not allow them raw.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Empty passwords versus no password.&lt;/strong&gt; &lt;code&gt;user:@host&lt;/code&gt; and &lt;code&gt;user@host&lt;/code&gt; are different. Some drivers send an empty credential and get "access denied"; others skip authentication entirely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. IPv6 hosts.&lt;/strong&gt; &lt;code&gt;mysql://user@::1:3306/db&lt;/code&gt; is ambiguous. Bracket the address: &lt;code&gt;mysql://user@[::1]:3306/db&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Unix sockets.&lt;/strong&gt; None of these URL forms express a socket path. MySQL clients accept &lt;code&gt;?socket=/var/run/mysqld/mysqld.sock&lt;/code&gt;, Postgres expects &lt;code&gt;?host=/var/run/postgresql&lt;/code&gt;, and Redis has no URL equivalent at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  A way to stop hand-editing them
&lt;/h2&gt;

&lt;p&gt;The parameters are short, the encoding rules are unforgiving, and the failure messages point at the wrong layer. Two habits save time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate the string once, then treat it as an opaque secret. Do not retype it into a second tool.&lt;/li&gt;
&lt;li&gt;Keep the TLS parameter explicit. &lt;code&gt;ssl-mode=REQUIRED&lt;/code&gt; and &lt;code&gt;sslmode=require&lt;/code&gt; are the values that make the connection behave the same in staging and production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I keep browser-side generators bookmarked for this: &lt;a href="https://dartshell.com/tools/mysql-connection-string" rel="noopener noreferrer"&gt;MySQL connection string&lt;/a&gt;, &lt;a href="https://dartshell.com/tools/postgresql-connection-string" rel="noopener noreferrer"&gt;PostgreSQL&lt;/a&gt;, and &lt;a href="https://dartshell.com/tools/redis-connection-string" rel="noopener noreferrer"&gt;Redis&lt;/a&gt;. They percent-encode the password for you and show the result as a copyable string, which removes the whole class of "it worked in my terminal" bugs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;MySQL&lt;/th&gt;
&lt;th&gt;PostgreSQL&lt;/th&gt;
&lt;th&gt;Redis&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Scheme&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mysql://&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;postgresql://&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;redis://&lt;/code&gt; / &lt;code&gt;rediss://&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default port&lt;/td&gt;
&lt;td&gt;3306&lt;/td&gt;
&lt;td&gt;5432&lt;/td&gt;
&lt;td&gt;6379&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Path segment&lt;/td&gt;
&lt;td&gt;database&lt;/td&gt;
&lt;td&gt;database&lt;/td&gt;
&lt;td&gt;database &lt;strong&gt;index&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TLS parameter&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ssl-mode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sslmode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;scheme (&lt;code&gt;rediss&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Username optional&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;only with ACL&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Once you know where each one diverges, connection strings stop being mysterious and become a format you can write correctly the first time.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>postgres</category>
      <category>redis</category>
      <category>database</category>
    </item>
    <item>
      <title>Moving SSH Clients to macOS? Test SFTP After Reconnecting</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Tue, 28 Jul 2026 02:52:34 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/moving-ssh-clients-to-macos-test-sftp-after-reconnecting-4ad5</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/moving-ssh-clients-to-macos-test-sftp-after-reconnecting-4ad5</guid>
      <description>&lt;p&gt;While building DartShell on macOS, I ran into a migration issue that a successful SSH login did not reveal.&lt;/p&gt;

&lt;p&gt;The terminal reconnected correctly after a dropped session. I could run commands again and browse the remote directory, yet dragging a local file into that directory sometimes failed to start an upload. In another case, the transfer entered the queue while the sidebar continued showing stale status.&lt;/p&gt;

&lt;p&gt;That failure changed how I evaluate a Bitvise replacement: reconnect SSH, then verify that SFTP uploads still work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bitvise behavior I needed to preserve
&lt;/h2&gt;

&lt;p&gt;Bitvise SSH Client gives Windows developers a practical combination of SSH access and graphical file management. After saving the host, port, username, and authentication settings, I can open a terminal and browse remote files from the same client.&lt;/p&gt;

&lt;p&gt;A common maintenance task depends on both parts: connect to a server, inspect logs, download a configuration file, edit it locally, and upload it again. When moving that task to a Mac, checking &lt;code&gt;ssh&lt;/code&gt; alone covers only the terminal portion.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I tested after SSH had recovered
&lt;/h2&gt;

&lt;p&gt;I compared drag-and-drop upload behavior before and after reconnecting. I treated the failed upload and stale sidebar status as separate observable failures because the available changes did not establish one shared root cause.&lt;/p&gt;

&lt;p&gt;I adjusted the drag-upload handling after reconnection and the transfer sidebar refresh.&lt;/p&gt;

&lt;p&gt;For verification, I disconnected SSH, reconnected to the same saved host, and dragged another local file into the remote directory. The upload started again, and the transfer status changed with the task.&lt;/p&gt;

&lt;p&gt;The important signal was the second upload. A successful first transfer only proved that the initial SFTP session worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reconnect test for macOS SSH clients
&lt;/h2&gt;

&lt;p&gt;When I assess a Mac replacement for Bitvise, I now run one complete sequence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save a host and connect over SSH.&lt;/li&gt;
&lt;li&gt;Open its remote directory and upload a local file.&lt;/li&gt;
&lt;li&gt;Disconnect the SSH session.&lt;/li&gt;
&lt;li&gt;Reconnect to the same host.&lt;/li&gt;
&lt;li&gt;Drag another file into the remote directory.&lt;/li&gt;
&lt;li&gt;Watch whether the upload starts and its progress refreshes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This sequence exposes reconnect-related transfer failures that a normal connection test can miss. It is also the check I used while improving the SSH and SFTP integration in DartShell.&lt;/p&gt;

&lt;p&gt;My practical takeaway is simple: after migrating from Bitvise, treat reconnecting, uploading, and refreshing transfer status as one test. If you maintain an SSH client, how do you verify SFTP behavior after the SSH session reconnects?&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>devops</category>
      <category>macos</category>
      <category>security</category>
    </item>
    <item>
      <title>Finding a WinSCP Alternative on macOS:Building a Better SFTP Workflow</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Thu, 23 Jul 2026 03:08:03 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/finding-a-winscp-alternative-on-macosbuilding-a-better-sftp-workflow-22mo</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/finding-a-winscp-alternative-on-macosbuilding-a-better-sftp-workflow-22mo</guid>
      <description>&lt;p&gt;When I moved my daily development workflow from Windows to macOS, one small thing kept bothering me: remote file management.&lt;/p&gt;

&lt;p&gt;WinSCP has been a reliable tool for many developers working on Windows. It provides a simple GUI for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connecting to servers through SFTP, FTP, SCP, WebDAV, and S3&lt;/li&gt;
&lt;li&gt;Uploading and downloading files&lt;/li&gt;
&lt;li&gt;Editing remote configuration files&lt;/li&gt;
&lt;li&gt;Managing saved server connections&lt;/li&gt;
&lt;li&gt;Automating file transfer tasks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem appears when switching to a Mac-based workflow. WinSCP does not provide an official native macOS version, and many developers end up combining terminal commands with separate file tools.&lt;/p&gt;

&lt;p&gt;I started building DartShell because I wanted a more integrated workflow for these daily tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why GUI file transfer still matters for developers
&lt;/h2&gt;

&lt;p&gt;Command-line tools like &lt;code&gt;scp&lt;/code&gt;, &lt;code&gt;rsync&lt;/code&gt;, and &lt;code&gt;sftp&lt;/code&gt; are powerful. I use them frequently too.&lt;/p&gt;

&lt;p&gt;But there are many situations where a graphical interface saves time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checking a remote project structure quickly&lt;/li&gt;
&lt;li&gt;Comparing local and server files&lt;/li&gt;
&lt;li&gt;Uploading a few changed files during deployment&lt;/li&gt;
&lt;li&gt;Editing server configuration files&lt;/li&gt;
&lt;li&gt;Managing multiple environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For these cases, opening a terminal session, remembering paths, and typing commands repeatedly adds friction.&lt;/p&gt;

&lt;p&gt;A simple two-panel file manager style is often easier when working with remote servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The workflow I wanted on macOS
&lt;/h2&gt;

&lt;p&gt;The goal was to combine common remote tasks into one place:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connect to server
        |
        v
Open remote files
        |
        v
Edit or upload changes
        |
        v
Continue working through SSH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of switching between a terminal app and a separate FTP client, I wanted a workflow where SSH and file management could live together.&lt;/p&gt;

&lt;p&gt;DartShell includes graphical SFTP and FTP support for this reason. It allows developers to browse remote directories, transfer files, and keep remote connections organized.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing a WinSCP replacement on Mac
&lt;/h2&gt;

&lt;p&gt;Different developers have different needs.&lt;/p&gt;

&lt;p&gt;A lightweight SFTP client may be enough if you only upload files occasionally.&lt;/p&gt;

&lt;p&gt;For regular server maintenance, these features become more important:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multiple connection profiles&lt;/li&gt;
&lt;li&gt;Support for common protocols&lt;/li&gt;
&lt;li&gt;Fast remote file browsing&lt;/li&gt;
&lt;li&gt;Integration with terminal workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tool choice depends on how often you manage servers and how complex your environments are.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;WinSCP remains a great Windows tool. macOS users usually need to adjust their workflow and choose tools that match their development habits.&lt;/p&gt;

&lt;p&gt;For me, the missing piece was a unified remote workflow combining SSH access and graphical file management.&lt;/p&gt;

&lt;p&gt;I’d be interested to hear how other developers handle this on macOS: do you mostly stay with terminal commands, or do you still prefer having a GUI file manager for remote servers?&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>devops</category>
      <category>macos</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Choosing an RDP Client on macOS:What I Learned After Managing Windows Machines from a Mac</title>
      <dc:creator>O Oliver</dc:creator>
      <pubDate>Wed, 22 Jul 2026 01:45:23 +0000</pubDate>
      <link>https://dev.to/o_oliver_3b38e6829628a1e9/choosing-an-rdp-client-on-macoswhat-i-learned-after-managing-windows-machines-from-a-mac-3655</link>
      <guid>https://dev.to/o_oliver_3b38e6829628a1e9/choosing-an-rdp-client-on-macoswhat-i-learned-after-managing-windows-machines-from-a-mac-3655</guid>
      <description>&lt;p&gt;If you move from Windows to macOS and still need to access Windows servers or desktops, one of the first problems you will hit is remote access.&lt;/p&gt;

&lt;p&gt;Many developers are familiar with Microsoft's Remote Desktop client (&lt;code&gt;mstsc&lt;/code&gt;) on Windows and expect a similar built-in workflow on Mac. macOS does not include a native RDP client, so you need a third-party solution.&lt;/p&gt;

&lt;p&gt;After trying different approaches, I found that the choice depends heavily on how you use remote connections: connecting to one Windows machine occasionally is simple, while managing multiple servers and protocols requires a different workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Microsoft's Remote Desktop Client: The Obvious Starting Point
&lt;/h2&gt;

&lt;p&gt;Microsoft provides an official RDP client for macOS through Windows App.&lt;/p&gt;

&lt;p&gt;For pure RDP access, it works well:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connect to Windows desktops and servers&lt;/li&gt;
&lt;li&gt;Support common RDP features&lt;/li&gt;
&lt;li&gt;Provide a familiar Microsoft ecosystem experience&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your only requirement is "connect my Mac to one Windows machine", this may already solve the problem.&lt;/p&gt;

&lt;p&gt;However, real development and operations workflows often become more complicated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a Dedicated RDP Client Workflow Starts Showing Limits
&lt;/h2&gt;

&lt;p&gt;When managing multiple remote machines, a few issues become noticeable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Server management becomes difficult at scale
&lt;/h3&gt;

&lt;p&gt;A few saved connections are easy to handle. Once you have many Windows servers, development machines, test environments, and customer systems, organizing them becomes less convenient.&lt;/p&gt;

&lt;p&gt;Remote connection tools are often used by developers who need dozens of saved sessions, not just one personal computer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hardware compatibility can become a concern
&lt;/h3&gt;

&lt;p&gt;Some older Mac devices using Intel processors may face compatibility limitations depending on the software version and future support direction.&lt;/p&gt;

&lt;p&gt;The Apple Silicon transition has changed the macOS application landscape significantly, and long-term compatibility matters for tools you rely on every day.&lt;/p&gt;

&lt;h3&gt;
  
  
  RDP is only one part of the workflow
&lt;/h3&gt;

&lt;p&gt;Developers rarely use only RDP.&lt;/p&gt;

&lt;p&gt;A typical remote workflow may include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH into Linux servers&lt;/li&gt;
&lt;li&gt;RDP into Windows environments&lt;/li&gt;
&lt;li&gt;VNC for remote desktops&lt;/li&gt;
&lt;li&gt;SFTP for file transfer&lt;/li&gt;
&lt;li&gt;Serial connections for hardware devices&lt;/li&gt;
&lt;li&gt;Database management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using separate applications for every protocol increases context switching and makes daily operations more fragmented.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Some Developers Prefer Unified Remote Management Tools
&lt;/h2&gt;

&lt;p&gt;For users managing multiple environments, a unified client can simplify the workflow.&lt;/p&gt;

&lt;p&gt;This was one of the reasons I built DartShell. The goal was to combine common remote protocols into one macOS application instead of forcing developers to maintain a collection of separate tools.&lt;/p&gt;

&lt;p&gt;For example, a typical day might involve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH into a Linux server to check logs&lt;/li&gt;
&lt;li&gt;Open an RDP session to a Windows build machine&lt;/li&gt;
&lt;li&gt;Transfer files through SFTP&lt;/li&gt;
&lt;li&gt;Manage another device through VNC&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeping these workflows together reduces the friction of switching between different applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  RDP Performance Still Matters
&lt;/h2&gt;

&lt;p&gt;Remote desktop experience depends on more than just connection support.&lt;/p&gt;

&lt;p&gt;Things that affect daily usability include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image quality&lt;/li&gt;
&lt;li&gt;Input latency&lt;/li&gt;
&lt;li&gt;Clipboard behavior&lt;/li&gt;
&lt;li&gt;Connection stability&lt;/li&gt;
&lt;li&gt;Multi-monitor support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A remote desktop tool can technically connect successfully but still feel uncomfortable during long development sessions.&lt;/p&gt;

&lt;p&gt;For Windows users moving to Mac, choosing an RDP client is less about finding a single "best" application and more about matching the tool to the way you work.&lt;/p&gt;

&lt;p&gt;If you only need occasional Windows access, Microsoft's official client may be enough. If you manage multiple machines and multiple remote protocols every day, a unified remote management workflow can save a lot of time.&lt;/p&gt;

&lt;p&gt;What remote access workflow do you use on macOS: a dedicated RDP client, or one tool that handles multiple protocols?&lt;/p&gt;

</description>
      <category>macos</category>
      <category>rdp</category>
    </item>
  </channel>
</rss>
