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/ --- .../setup-server-for-this-site/index.html | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'public/posts/2022-10-28/setup-server-for-this-site/index.html') 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
    -- cgit v1.2.3-70-g09d2