<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>酢ろぐ！</blog_title>
  <blog_url>https://blog.ch3cooh.jp/</blog_url>
  <categories>
    <anon>開発</anon>
    <anon>開発-AWS</anon>
  </categories>
  <description>AWS EC2(Amazon Linux AMI)で新しいインスタンスを作成するとec2-userというユーザーが作成されます。Amazon Linuxの場合にはデフォルトでec2-userですが、それ以外のAMIの場合には異なることがあるようなので別途確認してみてください。 Amazon Linuxでec2-userと同じ鍵を使ってrootで直接ログインできるようにする インスタンス作成後にec2-userで接続します。suで昇格します。 $ sudo su rootでログインしたあとにsshdの設定を変更します。 # vim /etc/ssh/sshd_config だいたい51行目あたり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2F20160307%2F1457312400&quot; title=&quot;Amazon Linuxでec2-userと同じ鍵を使ってrootで直接ログインできるようにする - 酢ろぐ！&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>2016-03-07 10:00:00</published>
  <title>Amazon Linuxでec2-userと同じ鍵を使ってrootで直接ログインできるようにする</title>
  <type>rich</type>
  <url>https://blog.ch3cooh.jp/entry/20160307/1457312400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
