diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-08-30 22:12:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-08-30 22:12:57 +0900 |
| commit | c67a3da20d930d06f3e1c871ea9141ceba5c0447 (patch) | |
| tree | c69a53b2605d10511fe7ce71263d325e81e59670 /public/posts/2022-10-28/setup-server-for-this-site/index.html | |
| parent | 38d097aa9128751e6752132e35cf795a2516fcc1 (diff) | |
| download | blog.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/posts/2022-10-28/setup-server-for-this-site/index.html')
| -rw-r--r-- | public/posts/2022-10-28/setup-server-for-this-site/index.html | 24 |
1 files changed, 15 insertions, 9 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"> |
