<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Macos on random thoughts</title><link>https://riad.run/tags/macos/</link><description>Recent content in Macos on random thoughts</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 22 Dec 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://riad.run/tags/macos/feed.xml" rel="self" type="application/rss+xml"/><item><title>Working with SSH in Linux and macOS</title><link>https://riad.run/posts/working-with-ssh/</link><pubDate>Thu, 22 Dec 2022 00:00:00 +0000</pubDate><guid>https://riad.run/posts/working-with-ssh/</guid><description>&lt;h2 id="table-of-contents"&gt;Table of contents&lt;a class="heading-anchor" href="#table-of-contents" aria-label="Link to this section"&gt;#&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;&lt;em&gt;This post is not yet completed&lt;/em&gt;&lt;/p&gt;&#10;&#10;&lt;h2 id="tldr"&gt;TL;DR&lt;a class="heading-anchor" href="#tldr" aria-label="Link to this section"&gt;#&lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;h3 id="generate-keys"&gt;Generate keys&lt;a class="heading-anchor" href="#generate-keys" aria-label="Link to this section"&gt;#&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;Default RSA key,&lt;/p&gt;&#10;&lt;p&gt;This will generate an RSA key called &lt;code&gt;id_rsa&lt;/code&gt; in the &lt;code&gt;~/.ssh/&lt;/code&gt; directory.&lt;/p&gt;&#10;&#10;&lt;div class="code-block" data-lang="sh"&gt;&#10; &lt;div class="code-header"&gt;&lt;span class="code-lang"&gt;sh&lt;/span&gt;&#10; &lt;button class="copy-btn" type="button" aria-label="Copy code to clipboard"&gt;&lt;svg class="icon icon-copy" viewBox="0 0 24 24" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;&lt;rect x="9" y="9" width="12" height="12" rx="2"/&gt;&lt;path d="M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1"/&gt;&lt;/svg&gt;&lt;svg class="icon icon-check" viewBox="0 0 24 24" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;&lt;path d="M20 6 9 17l-5-5"/&gt;&lt;/svg&gt;&lt;span class="copy-label"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ssh-keygen&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;I mostly prefer using the &lt;code&gt;ed25519&lt;/code&gt; key. To generate the key run the following,&lt;/p&gt;</description></item></channel></rss>