<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miomonclub</author_name>
  <author_url>https://blog.hatena.ne.jp/miomonclub/</author_url>
  <blog_title>みおもん倶楽部　技術雑記</blog_title>
  <blog_url>https://miomonclub.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>dockerで立てたコンテナにsshでアクセスして開発を行いたいなと思いました。 N番煎じもいいところですが、ちょっとハマったので記録を残しておきます。 目指すもの イメージはubuntu 認証方式は公開鍵認証、パスワード認証はしない。 ~/.ssh/terminal、~/.ssh/terminal.pubというキーペアを作成する アクセス方法はssh localhost -p 2222 -i ~/.ssh/terminal rootではなく作成したユーザでログインする（macやlinuxでは$USERで現在のユーザを参照できますが、その値でユーザを作成します） ポートは2222 ファイル構成…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiomonclub.hatenablog.com%2Fentry%2F2024%2F03%2F10%2F103815&quot; title=&quot;dockerでSSH接続可能なubuntuコンテナを立てる - みおもん倶楽部　技術雑記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-10 10:38:15</published>
  <title>dockerでSSH接続可能なubuntuコンテナを立てる</title>
  <type>rich</type>
  <url>https://miomonclub.hatenablog.com/entry/2024/03/10/103815</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
