From c67a3da20d930d06f3e1c871ea9141ceba5c0447 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 30 Aug 2023 22:12:57 +0900 Subject: feat(content): update /posts/2022-10-28/setup-server-for-this-site/ --- .../2022-10-28/setup-server-for-this-site.xml | 25 ++++++++++++++-------- .../setup-server-for-this-site/index.html | 24 +++++++++++++-------- public/posts/index.html | 2 +- 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 @@ 2022-10-28 公開 + + 2023-08-30 + ssh_config に IdentitiesOnly yes を追加 +
@@ -66,10 +70,11 @@
@@ -200,9 +205,11 @@ @@ -210,7 +217,7 @@ @@ -247,7 +254,7 @@ メインユーザが Docker を使えるように 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 @@
  • : 公開
  • +
  • + : ssh_config に IdentitiesOnly yes を追加 +
  • @@ -101,10 +104,11 @@ $ ssh-keygen -t ed25519 -b 521 -f ~/.ssh/github2teika.key

    Host teika
    -HostName **********
    -User **********
    -Port **********
    -IdentityFile ~/.ssh/teika.key
    + HostName ********** + User ********** + Port ********** + IdentityFile ~/.ssh/teika.key + IdentitiesOnly yes
    @@ -222,15 +226,17 @@ $ cat ~/.ssh/github.key.pub

    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

    最後に接続できるか確認しておく。

    -
    ssh -T github.com
    +
    $ ssh -T github.com
    @@ -259,7 +265,7 @@ $ sudo apt autoremove

    メインユーザが Docker を使えるように

    -
    sudo adduser ********** docker
    +
    $ sudo adduser ********** docker
    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 @@

    - 投稿 + 投稿、 更新
    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 @@

    -- cgit v1.2.3-70-g09d2