Help us understand the problem. What is going on with this article?

AWSの初期設定でrootパスワードを設定する

More than 5 years have passed since last update.

AWSで新規インスタンスを作成した場合、初期設定ではrootのパスワードが設定されていません。
このままだとリモートからrootログインできないため、ec2-userでリモートログイン後にrootのパスワードを設定します。

・ec2-userでリモートログイン
ssh -i mykey.pem ec2-user@[Public IP]

・rootユーザに昇格
[ec2-user@ip-***-***-***-*** ~]$ sudo su -

・パスワード変更
[ec2-user@ip-***-***-***-*** ~]$ passwd
Changing password for user root.
New password: (パスワード入力)
Retype new password: (もう一度入力)
passwd: all authentication tokens updated successfully.
[root@ip-***-***-***-*** ~]#

できました :tada:

dotstudio
全ての人がモノづくりを楽しむ世界を目指して活動しています。
https://dotstud.io
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした