<rss version="2.0">
  <channel>
    <title>Cheatsheet on Leon Mika</title>
    <link>https://lmika.org/categories/cheatsheet/</link>
    <description></description>
    
    <language>en</language>
    
    <lastBuildDate>Thu, 06 Aug 2026 09:16:54 +1000</lastBuildDate>
    
    <item>
      <title>SSH Cheatsheet</title>
      <link>https://lmika.org/2026/08/06/ssh-cheatsheet.html</link>
      <pubDate>Thu, 06 Aug 2026 09:16:54 +1000</pubDate>
      
      <guid>http://lmika.micro.blog/2026/08/06/ssh-cheatsheet.html</guid>
      <description>&lt;p&gt;Various techniques for working with SSH.&lt;/p&gt;
&lt;h2 id=&#34;generating-an-elliptic-curve-key&#34;&gt;Generating An Elliptic Curve Key&lt;/h2&gt;
&lt;p&gt;To generate an elliptic curve key, rather than an RSA, use one of the algorithms like &lt;code&gt;ed25519&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ssh-keygen -o -a &lt;span style=&#34;color:#ae81ff&#34;&gt;256&lt;/span&gt; -t ed25519
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Source: &lt;a href=&#34;https://cryptsus.com/blog/how-to-secure-your-ssh-server-with-public-key-elliptic-curve-ed25519-crypto.html&#34;&gt;Cryptsus&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;copying-key-to-remote-host&#34;&gt;Copying Key To Remote Host&lt;/h2&gt;
&lt;p&gt;To deploy the public key to a remove host, you could either use the existing method of concatinating the key to &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt;, or you could use &lt;code&gt;ssh-copy-id&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ssh-copy-id user@hostname.example.com
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This copies your default identity. To copy an arbitrary key, include the &lt;code&gt;-i&lt;/code&gt; switch:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ ssh-copy-id -i my_key user@hostname.example.com
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Source: &lt;a href=&#34;https://askubuntu.com/questions/4830/easiest-way-to-copy-ssh-keys-to-another-machine&#34;&gt;Stack Overflow&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>