<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SSH on Nerdsid.com</title><link>https://nerdsid.com/tags/ssh/</link><description>Recent content in SSH on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 29 Nov 2025 20:05:20 +0530</lastBuildDate><atom:link href="https://nerdsid.com/tags/ssh/index.xml" rel="self" type="application/rss+xml"/><item><title>11 Essential OpenSSH Components</title><link>https://nerdsid.com/posts/11-essential-openssh-components/</link><pubDate>Sat, 29 Nov 2025 20:05:20 +0530</pubDate><guid>https://nerdsid.com/posts/11-essential-openssh-components/</guid><description>&lt;p>You might have SSHed into servers hundreds of times.&lt;/p>
&lt;p>You might have used &lt;code>ssh-add&lt;/code> to load keys into your agent.&lt;/p>
&lt;p>You might have used &lt;code>scp&lt;/code> to copy files back and forth between your machine and server.&lt;/p>
&lt;p>But have you ever paused and looked at the bigger picture?&lt;/p>
&lt;p>All these commands come from one place — the OpenSSH suite. It’s much more than just &lt;code>ssh&lt;/code> and &lt;code>scp&lt;/code>.&lt;/p>
&lt;img
 class="spotlight"
 src="https://nerdsid.com/images/11-essential-open-ssh-components/OpenSSH-components.svg"
 alt="OpenSSH components breakdown"
 loading="lazy"
 >
&lt;h1 id="openssh-components">OpenSSH components&lt;/h1>
&lt;p>OpenSSH has &lt;strong>11 major&lt;/strong> components.&lt;/p></description></item><item><title>10 Steps to Secure a New Linux VM</title><link>https://nerdsid.com/posts/10-steps-to-make-a-new-linux-vm-safe/</link><pubDate>Wed, 22 Oct 2025 07:09:42 +0000</pubDate><guid>https://nerdsid.com/posts/10-steps-to-make-a-new-linux-vm-safe/</guid><description>&lt;p>When you launch a new Linux VM, the level of security you really need depends on your use case. That said, there are some basic steps you can take right after provisioning a new VM, to improve it&amp;rsquo;s baseline security. Following these steps won’t make your server invincible, but it will make it safe and reduce exposure to common attacks.&lt;/p>
&lt;h2 id="1-update-your-system">1. Update your system&lt;/h2>
&lt;p>Newly deployed images can contain outdated packages with known vulnerabilities. Start by updating everything:&lt;/p></description></item><item><title>One Line Command to Create an SSH Key</title><link>https://nerdsid.com/posts/one-line-command-to-create-ssh-key/</link><pubDate>Thu, 30 Mar 2023 00:00:00 -0800</pubDate><guid>https://nerdsid.com/posts/one-line-command-to-create-ssh-key/</guid><description>&lt;p>Of late, I have been creating a lot of SSH keys. I am tired of answering each question that one gets asked during such a process. So, I thought of looking up all the switches (options) for the &lt;code>ssh-keygen&lt;/code> command so that I can specify everything at once.&lt;/p>
&lt;p>Here is the command:&lt;/p>
&lt;p>For bash:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 POWERSHELL
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">ssh-keygen&lt;/span> &lt;span class="n">-t&lt;/span> &lt;span class="n">ed25519&lt;/span> &lt;span class="n">-b&lt;/span> &lt;span class="mf">4096&lt;/span> &lt;span class="n">-C&lt;/span> &lt;span class="s2">&amp;#34;you@mail.com for Gitlab&amp;#34;&lt;/span> &lt;span class="n">-N&lt;/span> &lt;span class="s2">&amp;#34;&amp;#34;&lt;/span> &lt;span class="o">-f&lt;/span> &lt;span class="s2">&amp;#34;/home/usr/.ssh/key&amp;#34;&lt;/span> &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>For powershell:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 POWERSHELL
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">ssh-keygen&lt;/span> &lt;span class="n">-t&lt;/span> &lt;span class="n">ed25519&lt;/span> &lt;span class="n">-b&lt;/span> &lt;span class="mf">4096&lt;/span> &lt;span class="n">-C&lt;/span> &lt;span class="s2">&amp;#34;you@mail.com for Gitlab&amp;#34;&lt;/span> &lt;span class="n">-N&lt;/span> &lt;span class="s1">&amp;#39;&amp;#34;&amp;#34;&amp;#39;&lt;/span> &lt;span class="o">-f&lt;/span> &lt;span class="s2">&amp;#34;C:\Users\uname\.ssh\keyname&amp;#34;&lt;/span> &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="description">Description&lt;/h2>
&lt;p>The above command generates an SSH key pair using the &lt;code>ed25519&lt;/code> algorithm with a 4096-bit key length, and saves the private and public keys with the specified name (and location).&lt;/p></description></item><item><title>Setup SSH Authentication for Git on Windows</title><link>https://nerdsid.com/posts/setup-ssh-authentication-for-git-in-windows/</link><pubDate>Mon, 13 Mar 2023 00:00:00 -0800</pubDate><guid>https://nerdsid.com/posts/setup-ssh-authentication-for-git-in-windows/</guid><description>&lt;h2 id="ssh-auth-vs-password-based-auth">SSH auth vs password based auth&lt;/h2>
&lt;p>SSH authentication is generally preferred over password-based authentication for several reasons:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Security&lt;/strong>: Passwords are easily guessed or hacked, whereas SSH authentication relies on cryptographic keys, which are much more difficult to crack.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Convenience&lt;/strong>: Once you&amp;rsquo;ve configured SSH authentication, logging in to a remote system becomes much easier. You don&amp;rsquo;t need to remember or type in a password every time you log in; instead, you just need to have your SSH key handy.&lt;/p></description></item><item><title>How to Fix SSH Error: Could not open a connection to your authentication agent</title><link>https://nerdsid.com/posts/fix-ssh-could-not-open-connection-to-auth-agent/</link><pubDate>Sat, 07 Jan 2023 07:32:28 +0530</pubDate><guid>https://nerdsid.com/posts/fix-ssh-could-not-open-connection-to-auth-agent/</guid><description>&lt;h2 id="the-problem">The problem&lt;/h2>
&lt;p>Recently, I was trying to add a SSH key to the &lt;code>ssh-agent&lt;/code>. So, I ran the following command:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ssh-add ~/.ssh/&amp;lt;key_name&amp;gt;&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>This resulted in the following error:&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">Could not open a connection to your authentication agent.&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h2 id="the-solution">The solution&lt;/h2>
&lt;p>The error message is pretty clear. Since a connection to the &lt;code>ssh-agent&lt;/code> could not be opened, first let&amp;rsquo;s check if the &lt;code>ssh-agent&lt;/code> is running or not.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">ps -e &lt;span class="p">|&lt;/span> grep &lt;span class="o">[&lt;/span>s&lt;span class="o">]&lt;/span>sh-agent&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;p>If the &lt;code>ssh-agent&lt;/code> is not running, you will not see any output. This is exactly what happened in my case. So, the solution is simple: you need to start the &lt;code>ssh-agent&lt;/code>.&lt;/p></description></item></channel></rss>