aboutsummaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-08-30 22:12:57 +0900
committernsfisis <nsfisis@gmail.com>2023-08-30 22:12:57 +0900
commitc67a3da20d930d06f3e1c871ea9141ceba5c0447 (patch)
treec69a53b2605d10511fe7ce71263d325e81e59670 /public
parent38d097aa9128751e6752132e35cf795a2516fcc1 (diff)
downloadblog.nsfisis.dev-c67a3da20d930d06f3e1c871ea9141ceba5c0447.tar.gz
blog.nsfisis.dev-c67a3da20d930d06f3e1c871ea9141ceba5c0447.tar.zst
blog.nsfisis.dev-c67a3da20d930d06f3e1c871ea9141ceba5c0447.zip
feat(content): update /posts/2022-10-28/setup-server-for-this-site/
Diffstat (limited to 'public')
-rw-r--r--public/posts/2022-10-28/setup-server-for-this-site/index.html24
-rw-r--r--public/posts/index.html2
-rw-r--r--public/tags/note-to-self/index.html2
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>