<?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: BenyaminRmb</title>
    <description>The latest articles on DEV Community by BenyaminRmb (@benyaminrmb).</description>
    <link>https://dev.to/benyaminrmb</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F795383%2Fcf1915eb-6418-4243-8f25-e39de1ea8c0c.png</url>
      <title>DEV Community: BenyaminRmb</title>
      <link>https://dev.to/benyaminrmb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benyaminrmb"/>
    <language>en</language>
    <item>
      <title>Stop doing the SSH + GitHub secrets dance by hand. One command does all of it.</title>
      <dc:creator>BenyaminRmb</dc:creator>
      <pubDate>Mon, 01 Jun 2026 09:23:23 +0000</pubDate>
      <link>https://dev.to/benyaminrmb/stop-doing-the-ssh-github-secrets-dance-by-hand-one-command-does-all-of-it-1ln0</link>
      <guid>https://dev.to/benyaminrmb/stop-doing-the-ssh-github-secrets-dance-by-hand-one-command-does-all-of-it-1ln0</guid>
      <description>&lt;p&gt;You know the ritual.&lt;/p&gt;

&lt;p&gt;New project. New VPS. Generate keypair. SSH in. Paste into &lt;code&gt;authorized_keys&lt;/code&gt;. Go to GitHub Settings. Add &lt;code&gt;SSH_KEY&lt;/code&gt;. Add &lt;code&gt;SSH_HOST&lt;/code&gt;. Add &lt;code&gt;SSH_PORT&lt;/code&gt;. Add &lt;code&gt;SSH_USER&lt;/code&gt;. Write &lt;code&gt;deploy.yml&lt;/code&gt; from memory. Commit. Push. It fails because you mixed up a secret name. Fix. Push again.&lt;/p&gt;

&lt;p&gt;15 minutes. Every time. For the rest of your career.&lt;/p&gt;

&lt;p&gt;I got tired of it. So I killed it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx deploymate-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. One command. Fill in 5 fields. Done.&lt;/p&gt;




&lt;h2&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.amazonaws.com%2Fuploads%2Farticles%2Fcuke9yr4yztaxyzo7uqs.png" alt=" "&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  What happens under the hood
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────────────┐
│  ✓  Generating RSA key pair          (in memory only)   │
│  ✓  Uploading public key to server                      │
│  ✓  Injecting GitHub secrets                            │
│  ✓  Committing deploy.yml                               │
│                                                         │
│  └─ CI/CD is live. Every push to main deploys.          │
└─────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every push to &lt;code&gt;main&lt;/code&gt; now runs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git fetch + reset &lt;span class="nt"&gt;--hard&lt;/span&gt;
docker compose down
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No agent. No dashboard. No new service to babysit. Just a GitHub Actions workflow that does exactly what it says.&lt;/p&gt;




&lt;h2&gt;
  
  
  The security bit — since you'll ask
&lt;/h2&gt;

&lt;p&gt;The SSH password is used exactly once to bootstrap key auth. Never logged. Never stored. The private key is generated fresh, goes straight into a GitHub secret via libsodium box seal (how the API requires it), and then it's gone. After setup, your server only speaks to GitHub via the key we just installed.&lt;/p&gt;

&lt;p&gt;Source is all on GitHub. &lt;code&gt;src/services/ssh.ts&lt;/code&gt; and &lt;code&gt;src/services/github.ts&lt;/code&gt; if you want to audit — it's small.&lt;/p&gt;




&lt;h2&gt;
  
  
  This isn't Coolify
&lt;/h2&gt;

&lt;p&gt;No UI to manage. No containers to run. No database to back up. This is for when you want &lt;code&gt;git push&lt;/code&gt; to deploy on a $6 VPS and you don't want to think about it again.&lt;/p&gt;

&lt;p&gt;Small scope. Does one thing. Does it well.&lt;/p&gt;

&lt;p&gt;→ &lt;a href="https://github.com/Benyaminrmb/deploymate" rel="noopener noreferrer"&gt;github.com/Benyaminrmb/deploymate&lt;/a&gt;&lt;br&gt;
→ &lt;a href="https://www.npmjs.com/package/deploymate-cli" rel="noopener noreferrer"&gt;npmjs.com/package/deploymate-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PRs welcome. Issues too — I actually read them.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>githubactions</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
