{
  "version": "https://jsonfeed.org/version/1",
  "title": "Cheatsheet on Leon Mika",
  "icon": "https://avatars.micro.blog/avatars/2024/15/55331.jpg",
  "home_page_url": "https://lmika.org/",
  "feed_url": "https://lmika.org/feed.json",
  "items": [
      {
        "id": "http://lmika.micro.blog/2026/08/06/ssh-cheatsheet.html",
        "title": "SSH Cheatsheet",
        "content_html": "<p>Various techniques for working with SSH.</p>\n<h2 id=\"generating-an-elliptic-curve-key\">Generating An Elliptic Curve Key</h2>\n<p>To generate an elliptic curve key, rather than an RSA, use one of the algorithms like <code>ed25519</code>:</p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"display:flex;\"><span>$ ssh-keygen -o -a <span style=\"color:#ae81ff\">256</span> -t ed25519\n</span></span></code></pre></div><p>Source: <a href=\"https://cryptsus.com/blog/how-to-secure-your-ssh-server-with-public-key-elliptic-curve-ed25519-crypto.html\">Cryptsus</a></p>\n<h2 id=\"copying-key-to-remote-host\">Copying Key To Remote Host</h2>\n<p>To deploy the public key to a remove host, you could either use the existing method of concatinating the key to <code>~/.ssh/authorized_keys</code>, or you could use <code>ssh-copy-id</code>:</p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"display:flex;\"><span>$ ssh-copy-id user@hostname.example.com\n</span></span></code></pre></div><p>This copies your default identity. To copy an arbitrary key, include the <code>-i</code> switch:</p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"display:flex;\"><span>$ ssh-copy-id -i my_key user@hostname.example.com\n</span></span></code></pre></div><p>Source: <a href=\"https://askubuntu.com/questions/4830/easiest-way-to-copy-ssh-keys-to-another-machine\">Stack Overflow</a></p>\n",
        "date_published": "2026-08-06T09:16:54+10:00",
        "url": "https://lmika.org/2026/08/06/ssh-cheatsheet.html",
        "tags": ["Long Form Posts","Cheatsheet"]
      }
  ]
}
