diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/posts/2022-10-28/setup-server-for-this-site/index.html | 24 | ||||
| -rw-r--r-- | public/posts/index.html | 2 | ||||
| -rw-r--r-- | public/tags/note-to-self/index.html | 2 |
3 files changed, 17 insertions, 11 deletions
diff --git a/public/posts/2022-10-28/setup-server-for-this-site/index.html b/public/posts/2022-10-28/setup-server-for-this-site/index.html index 87979e7..20297c1 100644 --- a/public/posts/2022-10-28/setup-server-for-this-site/index.html +++ b/public/posts/2022-10-28/setup-server-for-this-site/index.html @@ -51,6 +51,9 @@ <li class="revision"> <time datetime="2022-10-28">2022-10-28</time>: 公開 </li> + <li class="revision"> + <time datetime="2023-08-30">2023-08-30</time>: ssh_config に IdentitiesOnly yes を追加 + </li> </ol> </section> <section id="section--intro"> @@ -101,10 +104,11 @@ $ ssh-keygen -t ed25519 -b 521 -f ~/.ssh/github2teika.key</code></pre> </p> <pre class="highlight" language="ssh_config" linenumbering="unnumbered"><code>Host teika -HostName ********** -User ********** -Port ********** -IdentityFile ~/.ssh/teika.key</code></pre> + HostName ********** + User ********** + Port ********** + IdentityFile ~/.ssh/teika.key + IdentitiesOnly yes</code></pre> </section> </section> @@ -222,15 +226,17 @@ $ cat ~/.ssh/github.key.pub</code></pre> </p> <pre class="highlight" language="ssh_config" linenumbering="unnumbered"><code>Host github.com -HostName github.com -User git -IdentityFile ~/.ssh/github.key</code></pre> + HostName github.com + User git + Port 22 + IdentityFile ~/.ssh/github.key + IdentitiesOnly yes</code></pre> <p> 最後に接続できるか確認しておく。 </p> - <pre class="highlight" language="shell-session" linenumbering="unnumbered"><code>ssh -T github.com</code></pre> + <pre class="highlight" language="shell-session" linenumbering="unnumbered"><code>$ ssh -T github.com</code></pre> </section> <section id="section--basic-setup--upgrade-packages"> @@ -259,7 +265,7 @@ $ sudo apt autoremove</code></pre> <section id="section--site-hosting-setup--docker"> <h3><a href="#section--site-hosting-setup--docker">メインユーザが Docker を使えるように</a></h3> - <pre class="highlight" language="shell-session" linenumbering="unnumbered"><code>sudo adduser ********** docker</code></pre> + <pre class="highlight" language="shell-session" linenumbering="unnumbered"><code>$ sudo adduser ********** docker</code></pre> </section> <section id="section--site-hosting-setup--open-http-ports"> diff --git a/public/posts/index.html b/public/posts/index.html index 6d4f1c7..acd16a6 100644 --- a/public/posts/index.html +++ b/public/posts/index.html @@ -137,7 +137,7 @@ </p> </section> <footer class="entry-footer"> - <time datetime="2022-10-28">2022-10-28</time> 投稿 + <time datetime="2022-10-28">2022-10-28</time> 投稿、<time datetime="2023-08-30">2023-08-30</time> 更新 </footer> </a> </article> diff --git a/public/tags/note-to-self/index.html b/public/tags/note-to-self/index.html index 5bb66da..07f907b 100644 --- a/public/tags/note-to-self/index.html +++ b/public/tags/note-to-self/index.html @@ -48,7 +48,7 @@ </p> </section> <footer class="entry-footer"> - <time datetime="2022-10-28">2022-10-28</time> 投稿 + <time datetime="2022-10-28">2022-10-28</time> 投稿、<time datetime="2023-08-30">2023-08-30</time> 更新 </footer> </a> </article> |
