10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC2作成時にまず設定したこと

10
Posted at

アップデート

yum -y update

タイムゾーン変更

cp -p /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

新規ユーザ作成

ユーザ作成

# useradd username

公開鍵設置

# su - usrname
$ mkdir ~/.ssh
$ cp /home/ec2-user/.ssh/authorized_keys ~/.ssh
$ chown -R username.username ~/.ssh

SSHログイン

作成したユーザでログインできることを確認

ec2-user削除

不要な場合は削除する
userdell -R ec2-user

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?