diff options
| -rw-r--r-- | content/posts/2022-10-28/setup-server-for-this-site.xml | 25 | ||||
| -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 |
4 files changed, 33 insertions, 20 deletions
diff --git a/content/posts/2022-10-28/setup-server-for-this-site.xml b/content/posts/2022-10-28/setup-server-for-this-site.xml index 905010a..b0ad60e 100644 --- a/content/posts/2022-10-28/setup-server-for-this-site.xml +++ b/content/posts/2022-10-28/setup-server-for-this-site.xml @@ -13,6 +13,10 @@ <date>2022-10-28</date> <revremark>公開</revremark> </revision> + <revision> + <date>2023-08-30</date> + <revremark>ssh_config に IdentitiesOnly yes を追加</revremark> + </revision> </revhistory> </info> <section xml:id="intro"> @@ -66,10 +70,11 @@ <programlisting language="ssh_config" linenumbering="unnumbered"> <![CDATA[ Host teika - HostName ********** - User ********** - Port ********** - IdentityFile ~/.ssh/teika.key + HostName ********** + User ********** + Port ********** + IdentityFile ~/.ssh/teika.key + IdentitiesOnly yes ]]> </programlisting> </section> @@ -200,9 +205,11 @@ <programlisting language="ssh_config" linenumbering="unnumbered"> <![CDATA[ Host github.com - HostName github.com - User git - IdentityFile ~/.ssh/github.key + HostName github.com + User git + Port 22 + IdentityFile ~/.ssh/github.key + IdentitiesOnly yes ]]> </programlisting> <para> @@ -210,7 +217,7 @@ </para> <programlisting language="shell-session" linenumbering="unnumbered"> <![CDATA[ - ssh -T github.com + $ ssh -T github.com ]]> </programlisting> </section> @@ -247,7 +254,7 @@ <title>メインユーザが Docker を使えるように</title> <programlisting language="shell-session" linenumbering="unnumbered"> <![CDATA[ - sudo adduser ********** docker + $ sudo adduser ********** docker ]]> </programlisting> </section> 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> |
