<?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: sshpic</title>
    <description>The latest articles on DEV Community by sshpic (@sshpic).</description>
    <link>https://dev.to/sshpic</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%2F4015775%2Fbaff9e0f-e87c-41e2-8b13-fc890efc4aa1.png</url>
      <title>DEV Community: sshpic</title>
      <link>https://dev.to/sshpic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sshpic"/>
    <language>en</language>
    <item>
      <title>I built sshpic because local screenshots stop at the SSH boundary</title>
      <dc:creator>sshpic</dc:creator>
      <pubDate>Sun, 05 Jul 2026 04:52:44 +0000</pubDate>
      <link>https://dev.to/sshpic/i-built-sshpic-because-local-screenshots-stop-at-the-ssh-boundary-3oik</link>
      <guid>https://dev.to/sshpic/i-built-sshpic-because-local-screenshots-stop-at-the-ssh-boundary-3oik</guid>
      <description>&lt;p&gt;I often run coding agents inside a remote SSH session from iTerm2 on my Mac.&lt;/p&gt;

&lt;p&gt;The annoying part was not text input. It was screenshots.&lt;/p&gt;

&lt;p&gt;The screenshot is on my local Mac clipboard, but the coding agent is running inside a remote SSH terminal.&lt;/p&gt;

&lt;p&gt;So the normal flow became:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;screenshot → save file → scp somehow → copy remote path → return to the agent → paste path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That felt too slow for a workflow that happens many times a day.&lt;/p&gt;

&lt;p&gt;I wanted this instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;copy local screenshot → focus remote coding agent in iTerm2 → Cmd+V → remote image path appears
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So I built &lt;code&gt;sshpic&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What sshpic does
&lt;/h2&gt;

&lt;p&gt;When you press &lt;code&gt;Cmd+V&lt;/code&gt; inside an iTerm2 SSH session:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It reads the local Mac clipboard.&lt;/li&gt;
&lt;li&gt;If the clipboard contains an image, it uploads the image to the remote SSH host.&lt;/li&gt;
&lt;li&gt;It inserts the remote image path into the active iTerm2 session.&lt;/li&gt;
&lt;li&gt;If the clipboard contains text, normal text paste behavior is preserved.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In other words, it turns the screenshot handoff into a normal paste action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this exists
&lt;/h2&gt;

&lt;p&gt;This is for a narrow but painful workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;you are on macOS&lt;/li&gt;
&lt;li&gt;you use iTerm2&lt;/li&gt;
&lt;li&gt;you connect to a remote machine over SSH&lt;/li&gt;
&lt;li&gt;you run a terminal coding agent there&lt;/li&gt;
&lt;li&gt;you want to paste a local screenshot without leaving the coding session&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CLI means Command Line Interface, a tool used from the terminal.&lt;/p&gt;

&lt;p&gt;SSH means Secure Shell, a protocol for connecting to a remote machine.&lt;/p&gt;

&lt;p&gt;SCP means Secure Copy, a file transfer command that copies files over SSH.&lt;/p&gt;

&lt;p&gt;AI means Artificial Intelligence, software behavior produced by machine learning systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  v0.1 scope
&lt;/h2&gt;

&lt;p&gt;The first release is intentionally narrow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mac + iTerm2 first&lt;/li&gt;
&lt;li&gt;real SSH + Codex E2E verified&lt;/li&gt;
&lt;li&gt;no cloud upload&lt;/li&gt;
&lt;li&gt;no remote install&lt;/li&gt;
&lt;li&gt;SSH-only transfer&lt;/li&gt;
&lt;li&gt;no per-screenshot upload command&lt;/li&gt;
&lt;li&gt;text paste fallback verified&lt;/li&gt;
&lt;li&gt;restore supported&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;E2E means End-to-End, a full real user workflow test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Important limitation
&lt;/h2&gt;

&lt;p&gt;sshpic does path insertion, not native AI image attachment.&lt;/p&gt;

&lt;p&gt;It guarantees that the image exists on the remote SSH host and that the remote image path is inserted into the active iTerm2 session.&lt;/p&gt;

&lt;p&gt;The terminal AI tool must separately know how to use that path.&lt;/p&gt;

&lt;p&gt;So this is not a claim that every AI tool will natively understand the image. It is a small tool for getting the image onto the remote host and inserting the path where you are already typing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security notes
&lt;/h2&gt;

&lt;p&gt;The design goal is to avoid cloud upload and avoid installing anything on the remote machine.&lt;/p&gt;

&lt;p&gt;The image is transferred over SSH. Remote files are written with restrictive permissions.&lt;/p&gt;

&lt;p&gt;Still, screenshots can contain sensitive information. Be careful with screenshots that include tokens, secrets, credentials, private messages, or internal dashboards.&lt;/p&gt;

&lt;p&gt;Credentials mean authentication information, such as passwords, API keys, or access tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project link
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/leekyungmoon/sshpic" rel="noopener noreferrer"&gt;https://github.com/leekyungmoon/sshpic&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback from people using remote SSH coding-agent workflows would be very useful.&lt;/p&gt;

&lt;p&gt;If this saves you the screenshot → scp → paste path loop, a star helps other remote SSH users find it.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>cli</category>
      <category>macos</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
